blob: b0450aee3eada468acf801d2a6c503b5e6bc41ab [file] [log] [blame]
{ "attributes" : [ { "checksum" : "548fa4bc548b8b59ac98fffee8e81f4a",
"name" : "server.rb",
"path" : "attributes/server.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-548fa4bc548b8b59ac98fffee8e81f4a?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=MsgggSKS0T1q1Lc72nJpHORBQX0%3D"
} ],
"chef_type" : "cookbook_version",
"cookbook_name" : "mysql",
"definitions" : [ ],
"files" : [ ],
"json_class" : "Chef::CookbookVersion",
"libraries" : [ { "checksum" : "b2eb0760c07734be9c637dcffc86175a",
"name" : "database.rb",
"path" : "libraries/database.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-b2eb0760c07734be9c637dcffc86175a?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=CvVbxzrA%2Fuxc59ZjLR5BsMozfxk%3D"
} ],
"metadata" : { "attributes" : { "mysql/bind_address" : { "calculated" : false,
"choice" : [ ],
"default" : "ipaddress",
"description" : "Address that mysqld should listen on",
"display_name" : "MySQL Bind Address",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/datadir" : { "calculated" : false,
"choice" : [ ],
"default" : "/var/lib/mysql",
"description" : "Location of mysql databases",
"display_name" : "MySQL Data Directory",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/ec2_path" : { "calculated" : false,
"choice" : [ ],
"default" : "/mnt/mysql",
"description" : "Location of mysql directory on EC2 instance EBS volumes",
"display_name" : "MySQL EC2 Path",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/server_root_password" : { "calculated" : false,
"choice" : [ ],
"default" : "randomly generated",
"description" : "Randomly generated password for the mysqld root user",
"display_name" : "MySQL Server Root Password",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable" : { "calculated" : false,
"choice" : [ ],
"description" : "Hash of MySQL tunable attributes",
"display_name" : "MySQL Tunables",
"recipes" : [ ],
"required" : "optional",
"type" : "hash"
},
"mysql/tunable/back_log" : { "calculated" : false,
"choice" : [ ],
"default" : "128",
"display_name" : "MySQL Tunable Back Log",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable/key_buffer" : { "calculated" : false,
"choice" : [ ],
"default" : "250M",
"display_name" : "MySQL Tuntable Key Buffer",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable/max_connections" : { "calculated" : false,
"choice" : [ ],
"default" : "800",
"display_name" : "MySQL Tunable Max Connections",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable/max_heap_table_size" : { "calculated" : false,
"choice" : [ ],
"default" : "32M",
"display_name" : "MySQL Tunable Max Heap Table Size",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable/net_read_timeout" : { "calculated" : false,
"choice" : [ ],
"default" : "30",
"display_name" : "MySQL Tunable Net Read Timeout",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable/net_write_timeout" : { "calculated" : false,
"choice" : [ ],
"default" : "30",
"display_name" : "MySQL Tunable Net Write Timeout",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable/table_cache" : { "calculated" : false,
"choice" : [ ],
"default" : "128",
"display_name" : "MySQL Tunable Table Cache",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
},
"mysql/tunable/wait_timeout" : { "calculated" : false,
"choice" : [ ],
"default" : "180",
"display_name" : "MySQL Tunable Wait Timeout",
"recipes" : [ ],
"required" : "optional",
"type" : "string"
}
},
"conflicting" : { },
"dependencies" : { "openssl" : "" },
"description" : "Installs and configures mysql for client or server",
"groupings" : { },
"license" : "Apache 2.0",
"long_description" : "= DESCRIPTION:\n\nInstalls and configures MySQL client or server.\n\n= REQUIREMENTS:\n\n== Platform:\n\nBest tested on Ubuntu 9.04,9.10. On EC2, requires platform that supports -o bind option for the 'mount' command.\n\n== Cookbooks:\n\nRequires Opscode's openssl cookbook for secure password generation.\n\n= ATTRIBUTES: \n\n* mysql[:server_root_password] - Set the server's root password with this, default is a randomly generated password with OpenSSL::Random.random_bytes.\n* mysql[:server_repl_password] - Set the replication user 'repl' password with this, default is a randomly generated password with OpenSSL::Random.random_bytes.\n* mysql[:server_debian_password] - Set the debian-sys-maint user password with this, default is a randomly generated password with OpenSSL::Random.random_bytes.\n* mysql[:bind_address] - Listen address for MySQLd, default is node's ipaddress.\n* mysql[:datadir] - Location for mysql data directory, default is \"/var/lib/mysql\" \n* mysql[:ec2_path] - location of mysql datadir on EC2 nodes, default \"/mnt/mysql\" \n\nPerformance tuning attributes, each corresponds to the same-named parameter in my.cnf; default values listed\n\n* mysql[:tunable][:key_buffer] = \"250M\"\n* mysql[:tunable][:max_connections] = \"800\" \n* mysql[:tunable][:wait_timeout] = \"180\" \n* mysql[:tunable][:net_write_timeout] = \"30\" \n* mysql[:tunable][:net_write_timeout] = \"30\" \n* mysql[:tunable][:back_log] = \"128\" \n* mysql[:tunable][:table_cache] = \"128\" \n* mysql[:tunable][:max_heap_table_size] = \"32M\" \n\n= USAGE:\n\nOn client nodes,\n\n include_recipe \"mysql::client\"\n \nAs the common use case is on systems with Ruby, we also install the MySQL RubyGem. Because we may want to be able to use the gem within another Chef recipe, we make sure the mysql development package and gem are installed first. The key is this:\n\n r = package ... do\n action :nothing\n end\n \n r.run_action(:install)\n \nThis creates a resource object for the package and does the installation before other recipes are parsed. You'll need to have the C compiler and such (ie, build-essential on Ubuntu) before running the recipes, but we already do that when installing Chef :-). If you want to be able to access a MySQL database via Ruby within another recipe, you could do so, like so:\n\n Gem.clear_paths # needed for Chef to find the gem...\n require 'mysql' # requires the mysql gem\n\n execute \"create #{node[:railsapp][:db][:database]} database\" do\n command \"/usr/bin/mysqladmin -u root -p#{node[:mysql][:server_root_password]} create #{node[:railsapp][:db][:database]}\"\n not_if do\n m = Mysql.new(\"localhost\", \"root\", @node[:mysql][:server_root_password])\n m.list_dbs.include?(@node[:railsapp][:db][:database])\n end\n end\n\nOn server nodes, \n\n include_recipe \"mysql::server\"\n \nOn Debian/Ubuntu this will preseed the MySQL package with the randomly generated root password. You can of course change the password afterward, but this makes sure that there's a good password set. You can view it in the node data in the Chef Server webui. Sets a new password for debian-sys-maint user as well.\n\nAlso sets up 'repl' user grants for replication slaves.\n\nOn EC2 nodes,\n\n include_recipe \"mysql::server_ec2\"\n \nWhen the ec2_path doesn't exist we look for a mounted filesystem (eg, EBS) and move the datadir there.\n\nThe client recipe is already included by server and 'default' recipes.\n\n= LICENSE and AUTHOR:\n \nAuthor:: Joshua Timberman (<joshua@opscode.com>)\nAuthor:: AJ Christensen (<aj@opscode.com>)\n\nCopyright:: 2009, 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",
"maintainer" : "Opscode, Inc.",
"maintainer_email" : "cookbooks@opscode.com",
"name" : "mysql",
"platforms" : { "debian" : "",
"ubuntu" : ""
},
"providing" : { },
"recipes" : { "mysql::client" : "Installs packages required for mysql clients using run_action magic",
"mysql::server" : "Installs packages required for mysql servers w/o manual intervention",
"mysql::server_ec2" : "Performs EC2-specific mountpoint manipulation"
},
"recommendations" : { },
"replacing" : { },
"suggestions" : { },
"version" : "0.21.2"
},
"name" : "mysql-0.21.2",
"providers" : [ { "checksum" : "b994881a2aba60e32c4b6408ffba993d",
"name" : "database.rb",
"path" : "providers/database.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-b994881a2aba60e32c4b6408ffba993d?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=2XMRbryCmEqirCWLCvrXoenYubw%3D"
} ],
"recipes" : [ { "checksum" : "f51bd8122b7dccc9f4656319fef3252a",
"name" : "server_ec2.rb",
"path" : "recipes/server_ec2.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-f51bd8122b7dccc9f4656319fef3252a?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=BUR2mosCvmoOKq4Mkh3JUG0MY38%3D"
},
{ "checksum" : "80daa897597560372d017c58c4df0e3c",
"name" : "server.rb",
"path" : "recipes/server.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-80daa897597560372d017c58c4df0e3c?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=bU3j9Nw%2BnuIroXKrlJZe7tjaugA%3D"
},
{ "checksum" : "bd3ba2d05dea6a8cf0dc2a45f540cc32",
"name" : "default.rb",
"path" : "recipes/default.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-bd3ba2d05dea6a8cf0dc2a45f540cc32?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=7haumT5EtEM2h8l32efqV%2Fik%2BdY%3D"
},
{ "checksum" : "a1d679c7480267cd9b69e3194c7e45ab",
"name" : "client.rb",
"path" : "recipes/client.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-a1d679c7480267cd9b69e3194c7e45ab?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=ZhfTiwv1aXC7HZMnW8A7i4vkMCM%3D"
}
],
"resources" : [ { "checksum" : "8aa8e2cafe54c2932c7aa65d62ec2695",
"name" : "database.rb",
"path" : "resources/database.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-8aa8e2cafe54c2932c7aa65d62ec2695?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=6URS94f1HpRibHC%2FhBkr7Eg3dVA%3D"
} ],
"root_files" : [ { "checksum" : "e9278fc99fd668bdce33d72dc71fade9",
"name" : "README.rdoc",
"path" : "README.rdoc",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-e9278fc99fd668bdce33d72dc71fade9?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=KPgAGqShEO5SGzz8oRdwIInPUOc%3D"
},
{ "checksum" : "8d2f9635f4817ff905a4124e09ec6c59",
"name" : "metadata.rb",
"path" : "metadata.rb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-8d2f9635f4817ff905a4124e09ec6c59?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=fPF2iY7tNrq%2FuNrCjRLImP9vRbA%3D"
},
{ "checksum" : "e6804b8f3e6dfdbbece9d319537ffea1",
"name" : "metadata.json",
"path" : "metadata.json",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-e6804b8f3e6dfdbbece9d319537ffea1?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=EVsALLreeAA41%2BiPAfPt%2FxFEIYI%3D"
}
],
"templates" : [ { "checksum" : "689c1b6fbb242b6c508384e56646341d",
"name" : "my.cnf.erb",
"path" : "templates/ubuntu-9.10/my.cnf.erb",
"specificity" : "ubuntu-9.10",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-689c1b6fbb242b6c508384e56646341d?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=2ugp0XVvvUktYdBxfC9bCZBjOs4%3D"
},
{ "checksum" : "16b036a0bb31957a77e9b825cf616cc5",
"name" : "mysql-server.seed.erb",
"path" : "templates/default/mysql-server.seed.erb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-16b036a0bb31957a77e9b825cf616cc5?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=50bRvt6GQqFEcfYtaIsq1d4a4c8%3D"
},
{ "checksum" : "932b51ddddcbd24ee10a76ecae33b8ba",
"name" : "grants.sql.erb",
"path" : "templates/default/grants.sql.erb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-932b51ddddcbd24ee10a76ecae33b8ba?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=RHR0obLFcsN1M9tL28IH4Tcur5g%3D"
},
{ "checksum" : "7746560b37ac8d4a0cf68befbecbd8a3",
"name" : "my.cnf.erb",
"path" : "templates/default/my.cnf.erb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-7746560b37ac8d4a0cf68befbecbd8a3?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=W7Nqkvhw2TBrlDvcM2rlA4Oj5%2Bk%3D"
},
{ "checksum" : "63bd67fae6d297e8f658e9c0ad01a411",
"name" : "my.cnf.erb",
"path" : "templates/centos/my.cnf.erb",
"specificity" : "centos",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-63bd67fae6d297e8f658e9c0ad01a411?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=oFcRya56f%2F4oJBGrIvk4XcWQFm4%3D"
},
{ "checksum" : "689c1b6fbb242b6c508384e56646341d",
"name" : "my.cnf.erb",
"path" : "templates/ubuntu-10.04/my.cnf.erb",
"specificity" : "ubuntu-10.04",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-689c1b6fbb242b6c508384e56646341d?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=2ugp0XVvvUktYdBxfC9bCZBjOs4%3D"
},
{ "checksum" : "63bd67fae6d297e8f658e9c0ad01a411",
"name" : "my.cnf.erb",
"path" : "templates/redhat/my.cnf.erb",
"specificity" : "redhat",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-63bd67fae6d297e8f658e9c0ad01a411?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=oFcRya56f%2F4oJBGrIvk4XcWQFm4%3D"
},
{ "checksum" : "d2244150a145b3f658cd37c13269fafc",
"name" : "port_mysql.erb",
"path" : "templates/default/port_mysql.erb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-d2244150a145b3f658cd37c13269fafc?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=23iHcjwpNOvlNf%2BlrKcV2pkU7uo%3D"
},
{ "checksum" : "2e08553db526f5f80c28b343f6a616cb",
"name" : "debian.cnf.erb",
"path" : "templates/default/debian.cnf.erb",
"specificity" : "default",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-2e08553db526f5f80c28b343f6a616cb?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=VdcFYxnLUkj1tS3k8DovrzZEA7E%3D"
},
{ "checksum" : "1e5068eec65b51f5a327580fb0af4677",
"name" : "my.cnf.erb",
"path" : "templates/ubuntu-8.04/my.cnf.erb",
"specificity" : "ubuntu-8.04",
"url" : "https://s3.amazonaws.com/opscode-platform-production-data/organization-486ca3ac66264fea926aa0b4ff74341c/checksum-1e5068eec65b51f5a327580fb0af4677?AWSAccessKeyId=AKIAJOZTD2N26S7W6APA&Expires=1277774082&Signature=D5lPeu1UQvA9pEXZm5nVOwj3WIo%3D"
}
],
"version" : "0.21.2"
}