fast_food 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +73 -0
  5. data/Rakefile +8 -0
  6. data/chef/.chef/bootstrap/chef-solo.erb +27 -0
  7. data/chef/.chef/knife.rb +8 -0
  8. data/chef/.gitignore +1 -0
  9. data/chef/README +3 -0
  10. data/chef/cookbooks/README +1 -0
  11. data/chef/cookbooks/apache2/.gitignore +1 -0
  12. data/chef/cookbooks/apache2/CHANGELOG.md +81 -0
  13. data/chef/cookbooks/apache2/CONTRIBUTING +29 -0
  14. data/chef/cookbooks/apache2/Gemfile +10 -0
  15. data/chef/cookbooks/apache2/LICENSE +201 -0
  16. data/chef/cookbooks/apache2/README.md +373 -0
  17. data/chef/cookbooks/apache2/attributes/default.rb +149 -0
  18. data/chef/cookbooks/apache2/attributes/mod_auth_openid.rb +32 -0
  19. data/chef/cookbooks/apache2/definitions/apache_conf.rb +26 -0
  20. data/chef/cookbooks/apache2/definitions/apache_module.rb +53 -0
  21. data/chef/cookbooks/apache2/definitions/apache_site.rb +43 -0
  22. data/chef/cookbooks/apache2/definitions/web_app.rb +49 -0
  23. data/chef/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +41 -0
  24. data/chef/cookbooks/apache2/files/default/tests/minitest/default_test.rb +64 -0
  25. data/chef/cookbooks/apache2/files/default/tests/minitest/helpers.rb +36 -0
  26. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb +25 -0
  27. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_dav_svn_test.rb +16 -0
  28. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_perl_test.rb +22 -0
  29. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_php5_test.rb +19 -0
  30. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_python_test.rb +14 -0
  31. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_ssl_test.rb +19 -0
  32. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_wsgi_test.rb +14 -0
  33. data/chef/cookbooks/apache2/files/default/tests/minitest/mod_xsendfile_test.rb +14 -0
  34. data/chef/cookbooks/apache2/files/default/tests/minitest/modules_test.rb +19 -0
  35. data/chef/cookbooks/apache2/metadata.json +511 -0
  36. data/chef/cookbooks/apache2/metadata.rb +205 -0
  37. data/chef/cookbooks/apache2/recipes/default.rb +221 -0
  38. data/chef/cookbooks/apache2/recipes/god_monitor.rb +33 -0
  39. data/chef/cookbooks/apache2/recipes/mod_alias.rb +22 -0
  40. data/chef/cookbooks/apache2/recipes/mod_apreq2.rb +45 -0
  41. data/chef/cookbooks/apache2/recipes/mod_auth_basic.rb +20 -0
  42. data/chef/cookbooks/apache2/recipes/mod_auth_digest.rb +20 -0
  43. data/chef/cookbooks/apache2/recipes/mod_auth_openid.rb +113 -0
  44. data/chef/cookbooks/apache2/recipes/mod_authn_file.rb +20 -0
  45. data/chef/cookbooks/apache2/recipes/mod_authnz_ldap.rb +20 -0
  46. data/chef/cookbooks/apache2/recipes/mod_authz_default.rb +20 -0
  47. data/chef/cookbooks/apache2/recipes/mod_authz_groupfile.rb +20 -0
  48. data/chef/cookbooks/apache2/recipes/mod_authz_host.rb +20 -0
  49. data/chef/cookbooks/apache2/recipes/mod_authz_user.rb +20 -0
  50. data/chef/cookbooks/apache2/recipes/mod_autoindex.rb +22 -0
  51. data/chef/cookbooks/apache2/recipes/mod_cgi.rb +20 -0
  52. data/chef/cookbooks/apache2/recipes/mod_dav.rb +20 -0
  53. data/chef/cookbooks/apache2/recipes/mod_dav_fs.rb +20 -0
  54. data/chef/cookbooks/apache2/recipes/mod_dav_svn.rb +29 -0
  55. data/chef/cookbooks/apache2/recipes/mod_deflate.rb +22 -0
  56. data/chef/cookbooks/apache2/recipes/mod_dir.rb +22 -0
  57. data/chef/cookbooks/apache2/recipes/mod_env.rb +20 -0
  58. data/chef/cookbooks/apache2/recipes/mod_expires.rb +20 -0
  59. data/chef/cookbooks/apache2/recipes/mod_fastcgi.rb +26 -0
  60. data/chef/cookbooks/apache2/recipes/mod_fcgid.rb +53 -0
  61. data/chef/cookbooks/apache2/recipes/mod_headers.rb +20 -0
  62. data/chef/cookbooks/apache2/recipes/mod_ldap.rb +20 -0
  63. data/chef/cookbooks/apache2/recipes/mod_log_config.rb +24 -0
  64. data/chef/cookbooks/apache2/recipes/mod_logio.rb +24 -0
  65. data/chef/cookbooks/apache2/recipes/mod_mime.rb +22 -0
  66. data/chef/cookbooks/apache2/recipes/mod_negotiation.rb +22 -0
  67. data/chef/cookbooks/apache2/recipes/mod_perl.rb +39 -0
  68. data/chef/cookbooks/apache2/recipes/mod_php5.rb +99 -0
  69. data/chef/cookbooks/apache2/recipes/mod_proxy.rb +22 -0
  70. data/chef/cookbooks/apache2/recipes/mod_proxy_ajp.rb +21 -0
  71. data/chef/cookbooks/apache2/recipes/mod_proxy_balancer.rb +20 -0
  72. data/chef/cookbooks/apache2/recipes/mod_proxy_connect.rb +20 -0
  73. data/chef/cookbooks/apache2/recipes/mod_proxy_http.rb +20 -0
  74. data/chef/cookbooks/apache2/recipes/mod_python.rb +32 -0
  75. data/chef/cookbooks/apache2/recipes/mod_rewrite.rb +20 -0
  76. data/chef/cookbooks/apache2/recipes/mod_setenvif.rb +22 -0
  77. data/chef/cookbooks/apache2/recipes/mod_ssl.rb +43 -0
  78. data/chef/cookbooks/apache2/recipes/mod_status.rb +22 -0
  79. data/chef/cookbooks/apache2/recipes/mod_wsgi.rb +27 -0
  80. data/chef/cookbooks/apache2/recipes/mod_xsendfile.rb +27 -0
  81. data/chef/cookbooks/apache2/templates/default/a2dismod.erb +22 -0
  82. data/chef/cookbooks/apache2/templates/default/a2dissite.erb +29 -0
  83. data/chef/cookbooks/apache2/templates/default/a2enmod.erb +37 -0
  84. data/chef/cookbooks/apache2/templates/default/a2ensite.erb +38 -0
  85. data/chef/cookbooks/apache2/templates/default/apache2.conf.erb +237 -0
  86. data/chef/cookbooks/apache2/templates/default/apache2.god.erb +19 -0
  87. data/chef/cookbooks/apache2/templates/default/charset.erb +6 -0
  88. data/chef/cookbooks/apache2/templates/default/default-site.erb +57 -0
  89. data/chef/cookbooks/apache2/templates/default/mods/README +2 -0
  90. data/chef/cookbooks/apache2/templates/default/mods/alias.conf.erb +24 -0
  91. data/chef/cookbooks/apache2/templates/default/mods/authopenid.load.erb +1 -0
  92. data/chef/cookbooks/apache2/templates/default/mods/autoindex.conf.erb +101 -0
  93. data/chef/cookbooks/apache2/templates/default/mods/deflate.conf.erb +16 -0
  94. data/chef/cookbooks/apache2/templates/default/mods/dir.conf.erb +5 -0
  95. data/chef/cookbooks/apache2/templates/default/mods/fastcgi.conf.erb +5 -0
  96. data/chef/cookbooks/apache2/templates/default/mods/fcgid.conf.erb +10 -0
  97. data/chef/cookbooks/apache2/templates/default/mods/mime.conf.erb +198 -0
  98. data/chef/cookbooks/apache2/templates/default/mods/negotiation.conf.erb +18 -0
  99. data/chef/cookbooks/apache2/templates/default/mods/php5.conf.erb +16 -0
  100. data/chef/cookbooks/apache2/templates/default/mods/proxy.conf.erb +19 -0
  101. data/chef/cookbooks/apache2/templates/default/mods/setenvif.conf.erb +28 -0
  102. data/chef/cookbooks/apache2/templates/default/mods/ssl.conf.erb +76 -0
  103. data/chef/cookbooks/apache2/templates/default/mods/status.conf.erb +26 -0
  104. data/chef/cookbooks/apache2/templates/default/port_apache.erb +2 -0
  105. data/chef/cookbooks/apache2/templates/default/ports.conf.erb +6 -0
  106. data/chef/cookbooks/apache2/templates/default/security.erb +50 -0
  107. data/chef/cookbooks/apache2/templates/default/web_app.conf.erb +43 -0
  108. data/chef/cookbooks/build-essential/.gitignore +4 -0
  109. data/chef/cookbooks/build-essential/CHANGELOG.md +31 -0
  110. data/chef/cookbooks/build-essential/CONTRIBUTING +29 -0
  111. data/chef/cookbooks/build-essential/Gemfile +3 -0
  112. data/chef/cookbooks/build-essential/LICENSE +201 -0
  113. data/chef/cookbooks/build-essential/README.md +129 -0
  114. data/chef/cookbooks/build-essential/attributes/default.rb +33 -0
  115. data/chef/cookbooks/build-essential/metadata.json +41 -0
  116. data/chef/cookbooks/build-essential/metadata.rb +14 -0
  117. data/chef/cookbooks/build-essential/recipes/default.rb +92 -0
  118. data/chef/cookbooks/database/.gitignore +1 -0
  119. data/chef/cookbooks/database/CHANGELOG.md +46 -0
  120. data/chef/cookbooks/database/CONTRIBUTING +29 -0
  121. data/chef/cookbooks/database/LICENSE +201 -0
  122. data/chef/cookbooks/database/README.md +468 -0
  123. data/chef/cookbooks/database/libraries/provider_database_mysql.rb +103 -0
  124. data/chef/cookbooks/database/libraries/provider_database_mysql_user.rb +76 -0
  125. data/chef/cookbooks/database/libraries/provider_database_postgresql.rb +131 -0
  126. data/chef/cookbooks/database/libraries/provider_database_postgresql_user.rb +83 -0
  127. data/chef/cookbooks/database/libraries/provider_database_sql_server.rb +109 -0
  128. data/chef/cookbooks/database/libraries/provider_database_sql_server_user.rb +106 -0
  129. data/chef/cookbooks/database/libraries/resource_database.rb +119 -0
  130. data/chef/cookbooks/database/libraries/resource_database_user.rb +90 -0
  131. data/chef/cookbooks/database/libraries/resource_mysql_database.rb +34 -0
  132. data/chef/cookbooks/database/libraries/resource_mysql_database_user.rb +34 -0
  133. data/chef/cookbooks/database/libraries/resource_postgresql_database.rb +35 -0
  134. data/chef/cookbooks/database/libraries/resource_postgresql_database_user.rb +35 -0
  135. data/chef/cookbooks/database/libraries/resource_sql_server_database.rb +34 -0
  136. data/chef/cookbooks/database/libraries/resource_sql_server_database_user.rb +34 -0
  137. data/chef/cookbooks/database/metadata.json +45 -0
  138. data/chef/cookbooks/database/metadata.rb +22 -0
  139. data/chef/cookbooks/database/recipes/default.rb +20 -0
  140. data/chef/cookbooks/database/recipes/ebs_backup.rb +89 -0
  141. data/chef/cookbooks/database/recipes/ebs_volume.rb +204 -0
  142. data/chef/cookbooks/database/recipes/master.rb +78 -0
  143. data/chef/cookbooks/database/recipes/mysql.rb +20 -0
  144. data/chef/cookbooks/database/recipes/postgresql.rb +20 -0
  145. data/chef/cookbooks/database/recipes/snapshot.rb +62 -0
  146. data/chef/cookbooks/database/templates/default/app_grants.sql.erb +8 -0
  147. data/chef/cookbooks/database/templates/default/aws_config.erb +3 -0
  148. data/chef/cookbooks/database/templates/default/chef-solo-database-snapshot.cron.erb +6 -0
  149. data/chef/cookbooks/database/templates/default/chef-solo-database-snapshot.json.erb +1 -0
  150. data/chef/cookbooks/database/templates/default/chef-solo-database-snapshot.rb.erb +6 -0
  151. data/chef/cookbooks/database/templates/default/ebs-backup-cron.erb +2 -0
  152. data/chef/cookbooks/database/templates/default/ebs-db-backup.sh.erb +8 -0
  153. data/chef/cookbooks/database/templates/default/ebs-db-restore.sh.erb +10 -0
  154. data/chef/cookbooks/database/templates/default/s3cfg.erb +27 -0
  155. data/chef/cookbooks/fast_food/recipes/default.rb +24 -0
  156. data/chef/cookbooks/fast_food/recipes/site.rb +7 -0
  157. data/chef/cookbooks/fast_food/templates/default/web_app.conf.erb +43 -0
  158. data/chef/cookbooks/git/CHANGELOG.md +49 -0
  159. data/chef/cookbooks/git/CONTRIBUTING +29 -0
  160. data/chef/cookbooks/git/LICENSE +201 -0
  161. data/chef/cookbooks/git/README.md +115 -0
  162. data/chef/cookbooks/git/attributes/default.rb +37 -0
  163. data/chef/cookbooks/git/metadata.json +48 -0
  164. data/chef/cookbooks/git/metadata.rb +20 -0
  165. data/chef/cookbooks/git/recipes/default.rb +46 -0
  166. data/chef/cookbooks/git/recipes/server.rb +38 -0
  167. data/chef/cookbooks/git/recipes/source.rb +48 -0
  168. data/chef/cookbooks/git/recipes/windows.rb +32 -0
  169. data/chef/cookbooks/git/templates/default/sv-git-daemon-log-run.erb +2 -0
  170. data/chef/cookbooks/git/templates/default/sv-git-daemon-run.erb +3 -0
  171. data/chef/cookbooks/imagemagick/README.md +57 -0
  172. data/chef/cookbooks/imagemagick/metadata.json +37 -0
  173. data/chef/cookbooks/imagemagick/metadata.rb +14 -0
  174. data/chef/cookbooks/imagemagick/recipes/default.rb +25 -0
  175. data/chef/cookbooks/imagemagick/recipes/devel.rb +32 -0
  176. data/chef/cookbooks/imagemagick/recipes/rmagick.rb +22 -0
  177. data/chef/cookbooks/mysql/.gitignore +5 -0
  178. data/chef/cookbooks/mysql/CHANGELOG.md +125 -0
  179. data/chef/cookbooks/mysql/CONTRIBUTING +29 -0
  180. data/chef/cookbooks/mysql/Gemfile +8 -0
  181. data/chef/cookbooks/mysql/LICENSE +201 -0
  182. data/chef/cookbooks/mysql/README.md +227 -0
  183. data/chef/cookbooks/mysql/attributes/client.rb +50 -0
  184. data/chef/cookbooks/mysql/attributes/server.rb +240 -0
  185. data/chef/cookbooks/mysql/files/default/tests/minitest/server_test.rb +36 -0
  186. data/chef/cookbooks/mysql/files/default/tests/minitest/support/helpers.rb +11 -0
  187. data/chef/cookbooks/mysql/libraries/helpers.rb +33 -0
  188. data/chef/cookbooks/mysql/metadata.json +418 -0
  189. data/chef/cookbooks/mysql/metadata.rb +140 -0
  190. data/chef/cookbooks/mysql/recipes/client.rb +59 -0
  191. data/chef/cookbooks/mysql/recipes/default.rb +20 -0
  192. data/chef/cookbooks/mysql/recipes/ruby.rb +36 -0
  193. data/chef/cookbooks/mysql/recipes/server.rb +221 -0
  194. data/chef/cookbooks/mysql/recipes/server_ec2.rb +51 -0
  195. data/chef/cookbooks/mysql/templates/default/debian.cnf.erb +12 -0
  196. data/chef/cookbooks/mysql/templates/default/grants.sql.erb +15 -0
  197. data/chef/cookbooks/mysql/templates/default/my.cnf.erb +312 -0
  198. data/chef/cookbooks/mysql/templates/default/mysql-server.seed.erb +10 -0
  199. data/chef/cookbooks/mysql/templates/default/port_mysql.erb +3 -0
  200. data/chef/cookbooks/mysql/templates/windows/my.cnf.erb +61 -0
  201. data/chef/cookbooks/openssl/README.md +37 -0
  202. data/chef/cookbooks/openssl/libraries/secure_password.rb +37 -0
  203. data/chef/cookbooks/openssl/metadata.json +30 -0
  204. data/chef/cookbooks/openssl/metadata.rb +8 -0
  205. data/chef/cookbooks/openssl/recipes/default.rb +19 -0
  206. data/chef/cookbooks/passenger_apache2/.gitignore +4 -0
  207. data/chef/cookbooks/passenger_apache2/CHANGELOG.md +29 -0
  208. data/chef/cookbooks/passenger_apache2/CONTRIBUTING +29 -0
  209. data/chef/cookbooks/passenger_apache2/Gemfile +3 -0
  210. data/chef/cookbooks/passenger_apache2/LICENSE +201 -0
  211. data/chef/cookbooks/passenger_apache2/README.md +77 -0
  212. data/chef/cookbooks/passenger_apache2/attributes/default.rb +5 -0
  213. data/chef/cookbooks/passenger_apache2/metadata.json +38 -0
  214. data/chef/cookbooks/passenger_apache2/metadata.rb +17 -0
  215. data/chef/cookbooks/passenger_apache2/recipes/default.rb +60 -0
  216. data/chef/cookbooks/passenger_apache2/recipes/mod_rails.rb +47 -0
  217. data/chef/cookbooks/passenger_apache2/templates/default/passenger.conf.erb +3 -0
  218. data/chef/cookbooks/passenger_apache2/templates/default/passenger.load.erb +1 -0
  219. data/chef/cookbooks/passenger_apache2/templates/default/passenger_web_app.conf.erb +32 -0
  220. data/chef/cookbooks/passenger_apache2/templates/default/web_app.conf.erb +32 -0
  221. data/chef/roles/apache2.rb +12 -0
  222. data/chef/roles/mysql.rb +18 -0
  223. data/chef/solo.rb +5 -0
  224. data/config/deploy/centos.sh +17 -0
  225. data/config/deploy/production.rb +3 -0
  226. data/config/deploy/ubuntu.sh +10 -0
  227. data/config/deploy.rb +99 -0
  228. data/config/deployment.yml +6 -0
  229. data/fast_food.gemspec +26 -0
  230. data/lib/fast_food/railtie.rb +9 -0
  231. data/lib/fast_food/version.rb +3 -0
  232. data/lib/fast_food.rb +5 -0
  233. data/lib/tasks/fast_food.rake +100 -0
  234. data/spec/lib/fast_food_spec.rb +0 -0
  235. data/spec/spec_helper.rb +1 -0
  236. metadata +349 -0
@@ -0,0 +1,418 @@
1
+ {
2
+ "name": "mysql",
3
+ "description": "Installs and configures mysql for client or server",
4
+ "long_description": "Description\n===========\n\nInstalls and configures MySQL client or server.\n\nRequirements\n============\n\nChef 0.10.10+.\n\nPlatform\n--------\n\n* Debian, Ubuntu\n* CentOS, Red Hat, Fedora\n* Mac OS X (Using homebrew)\n\nTested on:\n\n* Debian 5.0, 6.0\n* Ubuntu 10.04-12.04\n* CentOS 5.5-5.8, 6.2-6.3\n* Mac OS X 10.7.2\n\nCookbooks\n---------\n\nRequires Opscode's openssl cookbook for secure password generation.\nSee _Attributes_ and _Usage_ for more information.\n\nThe RubyGem installation in the `mysql::ruby` recipe requires a C\ncompiler and Ruby development headers to be installed in order to\nbuild the mysql gem.\n\nRequires `homebrew`\n[cookbook](http://community.opscode.com/cookbooks/homebrew) on Mac OS\nX.\n\nResources and Providers\n=======================\n\nThe LWRP that used to ship as part of this cookbook has been\nrefactored into the\n[database](http://community.opscode.com/cookbooks/database)\ncookbook. Please see the README for details on updated usage.\n\nAttributes\n==========\n\nSee the `attributes/server.rb` or `attributes/client.rb` for default\nvalues. Several attributes have values that vary based on the node's\nplatform and version.\n\n* `node['mysql']['client']['packages']` - An array of package names\n that should be installed on \"client\" systems. This can be modified,\n e.g., to specify packages for Percona.\n* `node['mysql']['server']['packages']` - An array of package names\n that should be installed on \"server\" systems. This can be modified,\n e.g., to specify packages for Percona.\n\n* `node['mysql']['auto-increment-increment']` -\n auto-increment-increment value in my.cnf\n* `node['mysql']['auto-increment-offset]` - auto-increment-offset\n value in my.cnf\n* `node['mysql']['basedir']` - Base directory where MySQL is installed\n* `node['mysql']['bind_address']` - Listen address for MySQLd\n* `node['mysql']['conf_dir']` - Location for mysql conf directory\n* `node['mysql']['confd_dir']` - Location for mysql conf.d style\n include directory\n* `node['mysql']['data_dir']` - Location for mysql data directory\n* `node['mysql']['ec2_path']` - location of mysql data_dir on EC2\n nodes\n* `node['mysql']['grants_path']` - Path where the grants.sql should be\n written\n* `node['mysql']['mysqladmin_bin']` - Path to the mysqladmin binary\n* `node['mysql']['old_passwords']` - Sets the `old_passwords` value in\n my.cnf.\n* `node['mysql']['pid_file']` - Path to the mysqld.pid file\n* `node['mysql']['port']` - Liten port for MySQLd\n* `node['mysql']['reload_action']` - Action to take when mysql conf\n files are modified. Also allows \"reload\" and \"none\".\n* `node['mysql']['root_group']` - The default group of the \"root\" user\n* `node['mysql']['service_name']` - The name of the mysqld service\n* `node['mysql']['socket']` - Path to the mysqld.sock file\n* `node['mysql']['use_upstart']` - Whether to use upstart for the\n service provider\n\nPerformance and other \"tunable\" attributes are under the\n`node['mysql']['tunable']` attribute, corresponding to the same-named\nparameter in my.cnf, and the default values are used. See\n`attributes/server.rb`.\n\nThe following attributes are randomly generated passwords handled in\nthe `mysql::server` recipe, using the OpenSSL cookbook's\n`secure_password` helper method. These are set using the `set_unless`\nnode attribute method, which allows them to be easily overridden e.g.\nin a role.\n\n* `node['mysql']['server_root_password']` - Set the server's root\n password\n* `node['mysql']['server_repl_password']` - Set the replication user\n 'repl' password\n* `node['mysql']['server_debian_password']` - Set the debian-sys-maint\n user password\n\n## Windows Specific\n\nThe following attributes are specific to Windows platforms.\n\n* `node['mysql']['client']['version']` - The version of MySQL\n connector to install.\n* `node['mysql']['client']['arch']` - Force 32 bit to work with the\n mysql gem\n* `node['mysql']['client']['package_file']` - The MSI file for the\n mysql connector.\n* `node['mysql']['client']['url']` - URL to download the mysql\n connector.\n* `node['mysql']['client']['packages']` - Similar to other platforms,\n this is the name of the client package.\n* `node['mysql']['client']['basedir']` - Base installation location\n* `node['mysql']['client']['lib_dir']` - Libraries under the base location\n* `node['mysql']['client']['bin_dir']` - binary directory under base location\n* `node['mysql']['client']['ruby_dir']` - location where the Ruby\n binaries will be\n\nUsage\n=====\n\nOn client nodes, use the client (or default) recipe:\n\n { \"run_list\": [\"recipe[mysql::client]\"] }\n\nThis will install the MySQL client libraries and development headers\non the system.\n\nOn nodes which may use the `database` cookbook's mysql resources, also\nuse the ruby recipe. This installs the mysql RubyGem in the Ruby\nenvironment Chef is using via `chef_gem`.\n\n { \"run_list\": [\"recipe[mysql::client]\", \"recipe[mysql::ruby]\"] }\n\nIf you need to install the mysql Ruby library as a package for your\nsystem, override the client packages attribute in your node or role.\nFor example, on an Ubuntu system:\n\n {\n \"mysql\": {\n \"client\": {\n \"packages\": [\"mysql-client\", \"libmysqlclient-dev\",\"ruby-mysql\"]\n }\n }\n }\n\nThis creates a resource object for the package and does the\ninstallation before other recipes are parsed. You'll need to have the\nC compiler and such (ie, build-essential on Ubuntu) before running the\nrecipes, but we already do that when installing Chef :-).\n\nOn server nodes, use the server recipe:\n\n { \"run_list\": [\"recipe[mysql::server]\"] }\n\nOn Debian and Ubuntu, this will preseed the mysql-server package with\nthe randomly generated root password in the recipe file. On other\nplatforms, it simply installs the required packages. It will also\ncreate an SQL file, `/etc/mysql/grants.sql`, that will be used to set up\ngrants for the root, repl and debian-sys-maint users.\n\nThe recipe will perform a `node.save` unless it is run under\n`chef-solo` after the password attributes are used to ensure that in\nthe event of a failed run, the saved attributes would be used.\n\nOn EC2 nodes, use the `server_ec2` recipe and the mysql data dir will\nbe set up in the ephmeral storage.\n\n { \"run_list\": [\"recipe[mysql::server_ec2]\"] }\n\nWhen the `ec2_path` doesn't exist we look for a mounted filesystem\n(eg, EBS) and move the data_dir there.\n\nThe client recipe is already included by server and 'default' recipes.\n\nFor more infromation on the compile vs execution phase of a Chef run:\n\n* http://wiki.opscode.com/display/chef/Anatomy+of+a+Chef+Run\n\nChef Solo Note\n==============\n\nThese node attributes are stored on the Chef\nserver when using `chef-client`. Because `chef-solo` does not\nconnect to a server or save the node object at all, to have the same\npasswords persist across `chef-solo` runs, you must specify them in\nthe `json_attribs` file used. For example:\n\n {\n \"mysql\": {\n \"server_root_password\": \"iloverandompasswordsbutthiswilldo\",\n \"server_repl_password\": \"iloverandompasswordsbutthiswilldo\",\n \"server_debian_password\": \"iloverandompasswordsbutthiswilldo\"\n },\n \"run_list\":[\"recipe[mysql::server]\"]\n }\n\nLicense and Author\n==================\n\n- Author:: Joshua Timberman (<joshua@opscode.com>)\n- Author:: AJ Christensen (<aj@opscode.com>)\n- Author:: Seth Chisamore (<schisamo@opscode.com>)\n- Author:: Brian Bianco (<brian.bianco@gmail.com>)\n- Author:: Jesse Howarth (<him@jessehowarth.com>)\n- Author:: Andrew Crump (<andrew@kotirisoftware.com>)\n\nCopyright:: 2009-2012 Opscode, Inc\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
5
+ "maintainer": "Opscode, Inc.",
6
+ "maintainer_email": "cookbooks@opscode.com",
7
+ "license": "Apache 2.0",
8
+ "platforms": {
9
+ "debian": ">= 0.0.0",
10
+ "ubuntu": ">= 0.0.0",
11
+ "centos": ">= 0.0.0",
12
+ "suse": ">= 0.0.0",
13
+ "fedora": ">= 0.0.0",
14
+ "redhat": ">= 0.0.0",
15
+ "scientific": ">= 0.0.0",
16
+ "amazon": ">= 0.0.0",
17
+ "freebsd": ">= 0.0.0",
18
+ "windows": ">= 0.0.0",
19
+ "mac_os_x": ">= 0.0.0"
20
+ },
21
+ "dependencies": {
22
+ "openssl": ">= 0.0.0",
23
+ "build-essential": ">= 0.0.0"
24
+ },
25
+ "recommendations": {
26
+ },
27
+ "suggestions": {
28
+ "homebrew": ">= 0.0.0",
29
+ "windows": ">= 0.0.0"
30
+ },
31
+ "conflicting": {
32
+ },
33
+ "providing": {
34
+ },
35
+ "replacing": {
36
+ },
37
+ "attributes": {
38
+ "mysql/server_root_password": {
39
+ "display_name": "MySQL Server Root Password",
40
+ "description": "Randomly generated password for the mysqld root user",
41
+ "default": "randomly generated",
42
+ "choice": [
43
+
44
+ ],
45
+ "calculated": false,
46
+ "type": "string",
47
+ "required": "optional",
48
+ "recipes": [
49
+
50
+ ]
51
+ },
52
+ "mysql/bind_address": {
53
+ "display_name": "MySQL Bind Address",
54
+ "description": "Address that mysqld should listen on",
55
+ "default": "ipaddress",
56
+ "choice": [
57
+
58
+ ],
59
+ "calculated": false,
60
+ "type": "string",
61
+ "required": "optional",
62
+ "recipes": [
63
+
64
+ ]
65
+ },
66
+ "mysql/data_dir": {
67
+ "display_name": "MySQL Data Directory",
68
+ "description": "Location of mysql databases",
69
+ "default": "/var/lib/mysql",
70
+ "choice": [
71
+
72
+ ],
73
+ "calculated": false,
74
+ "type": "string",
75
+ "required": "optional",
76
+ "recipes": [
77
+
78
+ ]
79
+ },
80
+ "mysql/conf_dir": {
81
+ "display_name": "MySQL Conf Directory",
82
+ "description": "Location of mysql conf files",
83
+ "default": "/etc/mysql",
84
+ "choice": [
85
+
86
+ ],
87
+ "calculated": false,
88
+ "type": "string",
89
+ "required": "optional",
90
+ "recipes": [
91
+
92
+ ]
93
+ },
94
+ "mysql/ec2_path": {
95
+ "display_name": "MySQL EC2 Path",
96
+ "description": "Location of mysql directory on EC2 instance EBS volumes",
97
+ "default": "/mnt/mysql",
98
+ "choice": [
99
+
100
+ ],
101
+ "calculated": false,
102
+ "type": "string",
103
+ "required": "optional",
104
+ "recipes": [
105
+
106
+ ]
107
+ },
108
+ "mysql/reload_action": {
109
+ "display_name": "MySQL conf file reload action",
110
+ "description": "Action to take when mysql conf files are modified",
111
+ "default": "reload",
112
+ "choice": [
113
+
114
+ ],
115
+ "calculated": false,
116
+ "type": "string",
117
+ "required": "optional",
118
+ "recipes": [
119
+
120
+ ]
121
+ },
122
+ "mysql/tunable": {
123
+ "display_name": "MySQL Tunables",
124
+ "description": "Hash of MySQL tunable attributes",
125
+ "type": "hash",
126
+ "choice": [
127
+
128
+ ],
129
+ "calculated": false,
130
+ "required": "optional",
131
+ "recipes": [
132
+
133
+ ]
134
+ },
135
+ "mysql/tunable/key_buffer": {
136
+ "display_name": "MySQL Tuntable Key Buffer",
137
+ "default": "250M",
138
+ "choice": [
139
+
140
+ ],
141
+ "calculated": false,
142
+ "type": "string",
143
+ "required": "optional",
144
+ "recipes": [
145
+
146
+ ]
147
+ },
148
+ "mysql/tunable/max_connections": {
149
+ "display_name": "MySQL Tunable Max Connections",
150
+ "default": "800",
151
+ "choice": [
152
+
153
+ ],
154
+ "calculated": false,
155
+ "type": "string",
156
+ "required": "optional",
157
+ "recipes": [
158
+
159
+ ]
160
+ },
161
+ "mysql/tunable/wait_timeout": {
162
+ "display_name": "MySQL Tunable Wait Timeout",
163
+ "default": "180",
164
+ "choice": [
165
+
166
+ ],
167
+ "calculated": false,
168
+ "type": "string",
169
+ "required": "optional",
170
+ "recipes": [
171
+
172
+ ]
173
+ },
174
+ "mysql/tunable/net_read_timeout": {
175
+ "display_name": "MySQL Tunable Net Read Timeout",
176
+ "default": "30",
177
+ "choice": [
178
+
179
+ ],
180
+ "calculated": false,
181
+ "type": "string",
182
+ "required": "optional",
183
+ "recipes": [
184
+
185
+ ]
186
+ },
187
+ "mysql/tunable/net_write_timeout": {
188
+ "display_name": "MySQL Tunable Net Write Timeout",
189
+ "default": "30",
190
+ "choice": [
191
+
192
+ ],
193
+ "calculated": false,
194
+ "type": "string",
195
+ "required": "optional",
196
+ "recipes": [
197
+
198
+ ]
199
+ },
200
+ "mysql/tunable/back_log": {
201
+ "display_name": "MySQL Tunable Back Log",
202
+ "default": "128",
203
+ "choice": [
204
+
205
+ ],
206
+ "calculated": false,
207
+ "type": "string",
208
+ "required": "optional",
209
+ "recipes": [
210
+
211
+ ]
212
+ },
213
+ "mysql/tunable/table_cache": {
214
+ "display_name": "MySQL Tunable Table Cache for MySQL < 5.1.3",
215
+ "default": "128",
216
+ "choice": [
217
+
218
+ ],
219
+ "calculated": false,
220
+ "type": "string",
221
+ "required": "optional",
222
+ "recipes": [
223
+
224
+ ]
225
+ },
226
+ "mysql/tunable/table_open_cache": {
227
+ "display_name": "MySQL Tunable Table Cache for MySQL >= 5.1.3",
228
+ "default": "128",
229
+ "choice": [
230
+
231
+ ],
232
+ "calculated": false,
233
+ "type": "string",
234
+ "required": "optional",
235
+ "recipes": [
236
+
237
+ ]
238
+ },
239
+ "mysql/tunable/max_heap_table_size": {
240
+ "display_name": "MySQL Tunable Max Heap Table Size",
241
+ "default": "32M",
242
+ "choice": [
243
+
244
+ ],
245
+ "calculated": false,
246
+ "type": "string",
247
+ "required": "optional",
248
+ "recipes": [
249
+
250
+ ]
251
+ },
252
+ "mysql/tunable/expire_logs_days": {
253
+ "display_name": "MySQL Exipre Log Days",
254
+ "default": "10",
255
+ "choice": [
256
+
257
+ ],
258
+ "calculated": false,
259
+ "type": "string",
260
+ "required": "optional",
261
+ "recipes": [
262
+
263
+ ]
264
+ },
265
+ "mysql/tunable/max_binlog_size": {
266
+ "display_name": "MySQL Max Binlog Size",
267
+ "default": "100M",
268
+ "choice": [
269
+
270
+ ],
271
+ "calculated": false,
272
+ "type": "string",
273
+ "required": "optional",
274
+ "recipes": [
275
+
276
+ ]
277
+ },
278
+ "mysql/client": {
279
+ "display_name": "MySQL Connector/C Client",
280
+ "description": "Hash of MySQL client attributes",
281
+ "type": "hash",
282
+ "choice": [
283
+
284
+ ],
285
+ "calculated": false,
286
+ "required": "optional",
287
+ "recipes": [
288
+
289
+ ]
290
+ },
291
+ "mysql/client/version": {
292
+ "display_name": "MySQL Connector/C Version",
293
+ "default": "6.0.2",
294
+ "choice": [
295
+
296
+ ],
297
+ "calculated": false,
298
+ "type": "string",
299
+ "required": "optional",
300
+ "recipes": [
301
+
302
+ ]
303
+ },
304
+ "mysql/client/arch": {
305
+ "display_name": "MySQL Connector/C Architecture",
306
+ "default": "win32",
307
+ "choice": [
308
+
309
+ ],
310
+ "calculated": false,
311
+ "type": "string",
312
+ "required": "optional",
313
+ "recipes": [
314
+
315
+ ]
316
+ },
317
+ "mysql/client/package_file": {
318
+ "display_name": "MySQL Connector/C Package File Name",
319
+ "default": "mysql-connector-c-6.0.2-win32.msi",
320
+ "choice": [
321
+
322
+ ],
323
+ "calculated": false,
324
+ "type": "string",
325
+ "required": "optional",
326
+ "recipes": [
327
+
328
+ ]
329
+ },
330
+ "mysql/client/url": {
331
+ "display_name": "MySQL Connector/C Download URL",
332
+ "default": "http://www.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.0.2-win32.msi/from/http://mysql.mirrors.pair.com/",
333
+ "choice": [
334
+
335
+ ],
336
+ "calculated": false,
337
+ "type": "string",
338
+ "required": "optional",
339
+ "recipes": [
340
+
341
+ ]
342
+ },
343
+ "mysql/client/package_name": {
344
+ "display_name": "MySQL Connector/C Registry DisplayName",
345
+ "default": "MySQL Connector C 6.0.2",
346
+ "choice": [
347
+
348
+ ],
349
+ "calculated": false,
350
+ "type": "string",
351
+ "required": "optional",
352
+ "recipes": [
353
+
354
+ ]
355
+ },
356
+ "mysql/client/basedir": {
357
+ "display_name": "MySQL Connector/C Base Install Directory",
358
+ "default": "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2",
359
+ "choice": [
360
+
361
+ ],
362
+ "calculated": false,
363
+ "type": "string",
364
+ "required": "optional",
365
+ "recipes": [
366
+
367
+ ]
368
+ },
369
+ "mysql/client/lib_dir": {
370
+ "display_name": "MySQL Connector/C Library Directory (containing libmysql.dll)",
371
+ "default": "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2\\lib\\opt",
372
+ "choice": [
373
+
374
+ ],
375
+ "calculated": false,
376
+ "type": "string",
377
+ "required": "optional",
378
+ "recipes": [
379
+
380
+ ]
381
+ },
382
+ "mysql/client/bin_dir": {
383
+ "display_name": "MySQL Connector/C Executable Directory",
384
+ "default": "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2\\bin",
385
+ "choice": [
386
+
387
+ ],
388
+ "calculated": false,
389
+ "type": "string",
390
+ "required": "optional",
391
+ "recipes": [
392
+
393
+ ]
394
+ },
395
+ "mysql/client/ruby_dir": {
396
+ "display_name": "Ruby Executable Directory which should gain MySQL support",
397
+ "default": "system ruby",
398
+ "choice": [
399
+
400
+ ],
401
+ "calculated": false,
402
+ "type": "string",
403
+ "required": "optional",
404
+ "recipes": [
405
+
406
+ ]
407
+ }
408
+ },
409
+ "groupings": {
410
+ },
411
+ "recipes": {
412
+ "mysql": "Includes the client recipe to configure a client",
413
+ "mysql::client": "Installs packages required for mysql clients using run_action magic",
414
+ "mysql::server": "Installs packages required for mysql servers w/o manual intervention",
415
+ "mysql::server_ec2": "Performs EC2-specific mountpoint manipulation"
416
+ },
417
+ "version": "2.1.0"
418
+ }
@@ -0,0 +1,140 @@
1
+ name "mysql"
2
+ maintainer "Opscode, Inc."
3
+ maintainer_email "cookbooks@opscode.com"
4
+ license "Apache 2.0"
5
+ description "Installs and configures mysql for client or server"
6
+ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7
+ version "2.1.0"
8
+ recipe "mysql", "Includes the client recipe to configure a client"
9
+ recipe "mysql::client", "Installs packages required for mysql clients using run_action magic"
10
+ recipe "mysql::server", "Installs packages required for mysql servers w/o manual intervention"
11
+ recipe "mysql::server_ec2", "Performs EC2-specific mountpoint manipulation"
12
+
13
+ %w{ debian ubuntu centos suse fedora redhat scientific amazon freebsd windows mac_os_x }.each do |os|
14
+ supports os
15
+ end
16
+
17
+ depends "openssl"
18
+ depends "build-essential"
19
+ suggests "homebrew"
20
+ suggests "windows"
21
+
22
+ attribute "mysql/server_root_password",
23
+ :display_name => "MySQL Server Root Password",
24
+ :description => "Randomly generated password for the mysqld root user",
25
+ :default => "randomly generated"
26
+
27
+ attribute "mysql/bind_address",
28
+ :display_name => "MySQL Bind Address",
29
+ :description => "Address that mysqld should listen on",
30
+ :default => "ipaddress"
31
+
32
+ attribute "mysql/data_dir",
33
+ :display_name => "MySQL Data Directory",
34
+ :description => "Location of mysql databases",
35
+ :default => "/var/lib/mysql"
36
+
37
+ attribute "mysql/conf_dir",
38
+ :display_name => "MySQL Conf Directory",
39
+ :description => "Location of mysql conf files",
40
+ :default => "/etc/mysql"
41
+
42
+ attribute "mysql/ec2_path",
43
+ :display_name => "MySQL EC2 Path",
44
+ :description => "Location of mysql directory on EC2 instance EBS volumes",
45
+ :default => "/mnt/mysql"
46
+
47
+ attribute "mysql/reload_action",
48
+ :display_name => "MySQL conf file reload action",
49
+ :description => "Action to take when mysql conf files are modified",
50
+ :default => "reload"
51
+
52
+ attribute "mysql/tunable",
53
+ :display_name => "MySQL Tunables",
54
+ :description => "Hash of MySQL tunable attributes",
55
+ :type => "hash"
56
+
57
+ attribute "mysql/tunable/key_buffer",
58
+ :display_name => "MySQL Tuntable Key Buffer",
59
+ :default => "250M"
60
+
61
+ attribute "mysql/tunable/max_connections",
62
+ :display_name => "MySQL Tunable Max Connections",
63
+ :default => "800"
64
+
65
+ attribute "mysql/tunable/wait_timeout",
66
+ :display_name => "MySQL Tunable Wait Timeout",
67
+ :default => "180"
68
+
69
+ attribute "mysql/tunable/net_read_timeout",
70
+ :display_name => "MySQL Tunable Net Read Timeout",
71
+ :default => "30"
72
+
73
+ attribute "mysql/tunable/net_write_timeout",
74
+ :display_name => "MySQL Tunable Net Write Timeout",
75
+ :default => "30"
76
+
77
+ attribute "mysql/tunable/back_log",
78
+ :display_name => "MySQL Tunable Back Log",
79
+ :default => "128"
80
+
81
+ attribute "mysql/tunable/table_cache",
82
+ :display_name => "MySQL Tunable Table Cache for MySQL < 5.1.3",
83
+ :default => "128"
84
+
85
+ attribute "mysql/tunable/table_open_cache",
86
+ :display_name => "MySQL Tunable Table Cache for MySQL >= 5.1.3",
87
+ :default => "128"
88
+
89
+ attribute "mysql/tunable/max_heap_table_size",
90
+ :display_name => "MySQL Tunable Max Heap Table Size",
91
+ :default => "32M"
92
+
93
+ attribute "mysql/tunable/expire_logs_days",
94
+ :display_name => "MySQL Exipre Log Days",
95
+ :default => "10"
96
+
97
+ attribute "mysql/tunable/max_binlog_size",
98
+ :display_name => "MySQL Max Binlog Size",
99
+ :default => "100M"
100
+
101
+ attribute "mysql/client",
102
+ :display_name => "MySQL Connector/C Client",
103
+ :description => "Hash of MySQL client attributes",
104
+ :type => "hash"
105
+
106
+ attribute "mysql/client/version",
107
+ :display_name => "MySQL Connector/C Version",
108
+ :default => "6.0.2"
109
+
110
+ attribute "mysql/client/arch",
111
+ :display_name => "MySQL Connector/C Architecture",
112
+ :default => "win32"
113
+
114
+ attribute "mysql/client/package_file",
115
+ :display_name => "MySQL Connector/C Package File Name",
116
+ :default => "mysql-connector-c-6.0.2-win32.msi"
117
+
118
+ attribute "mysql/client/url",
119
+ :display_name => "MySQL Connector/C Download URL",
120
+ :default => "http://www.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.0.2-win32.msi/from/http://mysql.mirrors.pair.com/"
121
+
122
+ attribute "mysql/client/package_name",
123
+ :display_name => "MySQL Connector/C Registry DisplayName",
124
+ :default => "MySQL Connector C 6.0.2"
125
+
126
+ attribute "mysql/client/basedir",
127
+ :display_name => "MySQL Connector/C Base Install Directory",
128
+ :default => "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2"
129
+
130
+ attribute "mysql/client/lib_dir",
131
+ :display_name => "MySQL Connector/C Library Directory (containing libmysql.dll)",
132
+ :default => "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2\\lib\\opt"
133
+
134
+ attribute "mysql/client/bin_dir",
135
+ :display_name => "MySQL Connector/C Executable Directory",
136
+ :default => "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2\\bin"
137
+
138
+ attribute "mysql/client/ruby_dir",
139
+ :display_name => "Ruby Executable Directory which should gain MySQL support",
140
+ :default => "system ruby"
@@ -0,0 +1,59 @@
1
+ #
2
+ # Cookbook Name:: mysql
3
+ # Recipe:: client
4
+ #
5
+ # Copyright 2008-2011, Opscode, Inc.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+
20
+ # Include Opscode helper in Recipe class to get access
21
+ # to debian_before_squeeze? and ubuntu_before_lucid?
22
+ ::Chef::Recipe.send(:include, Opscode::Mysql::Helpers)
23
+
24
+ case node['platform']
25
+ when "windows"
26
+ package_file = node['mysql']['client']['package_file']
27
+ remote_file "#{Chef::Config[:file_cache_path]}/#{package_file}" do
28
+ source node['mysql']['client']['url']
29
+ not_if { File.exists? "#{Chef::Config[:file_cache_path]}/#{package_file}" }
30
+ end
31
+
32
+ windows_package node['mysql']['client']['packages'].first do
33
+ source "#{Chef::Config[:file_cache_path]}/#{package_file}"
34
+ end
35
+ windows_path node['mysql']['client']['bin_dir'] do
36
+ action :add
37
+ end
38
+ def package(*args, &blk)
39
+ windows_package(*args, &blk)
40
+ end
41
+ when "mac_os_x"
42
+ include_recipe 'homebrew'
43
+ end
44
+
45
+ node['mysql']['client']['packages'].each do |mysql_pack|
46
+ package mysql_pack do
47
+ action :install
48
+ end
49
+ end
50
+
51
+ if platform? 'windows'
52
+ ruby_block "copy libmysql.dll into ruby path" do
53
+ block do
54
+ require 'fileutils'
55
+ FileUtils.cp "#{node['mysql']['client']['lib_dir']}\\libmysql.dll", node['mysql']['client']['ruby_dir']
56
+ end
57
+ not_if { File.exist?("#{node['mysql']['client']['ruby_dir']}\\libmysql.dll") }
58
+ end
59
+ end
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: mysql
3
+ # Recipe:: default
4
+ #
5
+ # Copyright 2008-2009, Opscode, Inc.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+
20
+ include_recipe "mysql::client"
@@ -0,0 +1,36 @@
1
+ #
2
+ # Cookbook Name:: mysql
3
+ # Recipe:: ruby
4
+ #
5
+ # Author:: Jesse Howarth (<him@jessehowarth.com>)
6
+ # Author:: Jamie Winsor (<jamie@vialstudios.com>)
7
+ #
8
+ # Copyright 2008-2012, Opscode, Inc.
9
+ #
10
+ # Licensed under the Apache License, Version 2.0 (the "License");
11
+ # you may not use this file except in compliance with the License.
12
+ # You may obtain a copy of the License at
13
+ #
14
+ # http://www.apache.org/licenses/LICENSE-2.0
15
+ #
16
+ # Unless required by applicable law or agreed to in writing, software
17
+ # distributed under the License is distributed on an "AS IS" BASIS,
18
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ # See the License for the specific language governing permissions and
20
+ # limitations under the License.
21
+ #
22
+
23
+ execute "apt-get update" do
24
+ ignore_failure true
25
+ action :nothing
26
+ end.run_action(:run) if node['platform_family'] == "debian"
27
+
28
+ node.set['build_essential']['compiletime'] = true
29
+ include_recipe "build-essential"
30
+ include_recipe "mysql::client"
31
+
32
+ node['mysql']['client']['packages'].each do |mysql_pack|
33
+ resources("package[#{mysql_pack}]").run_action(:install)
34
+ end
35
+
36
+ chef_gem "mysql"