- Generate cookbook with
chef generate cookbookcommand - Specify dependencies in metadata.rb
- Set-Up MySQL server 5.5. Use CentOS 6.9 platform.
- Create MySQL database
app_prod. Create MySQL userprod_user. Grant all privileges toprod_useronapp_prod - Create MySQL database
app_stage. Create MySQL userstage_user. Grant all privileges tostage_useronapp_stageDb. Grant select privilege tostage_useronapp_prod. - Create schemas on
app_prod,app_stageusing sample schema sample_schema.sql - Create backup folder :
'/opt/backups' - Create daily cronjob with backup of each DB.
- Tune
innod_db_buffer_pool_sizeto be1024Mb. Keep as string parameter ( cookbook attribute )
olebel/gl_mysql
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|