-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetadata.json
More file actions
418 lines (362 loc) · 17.1 KB
/
metadata.json
File metadata and controls
418 lines (362 loc) · 17.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
{
"name": "mysql",
"description": "Installs and configures mysql for client or server",
"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](https://github.com/opscode/cookbooks/tree/master/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\n**Chef Solo Note**: These node attributes are stored on the Chef\n server when using `chef-client`. Because `chef-solo` does not\n connect to a server or save the node object at all, to have the same\n passwords persist across `chef-solo` runs, you must specify them in\n the `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\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\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",
"maintainer": "Opscode, Inc.",
"maintainer_email": "cookbooks@opscode.com",
"license": "Apache 2.0",
"platforms": {
"debian": ">= 0.0.0",
"ubuntu": ">= 0.0.0",
"centos": ">= 0.0.0",
"suse": ">= 0.0.0",
"fedora": ">= 0.0.0",
"redhat": ">= 0.0.0",
"scientific": ">= 0.0.0",
"amazon": ">= 0.0.0",
"freebsd": ">= 0.0.0",
"windows": ">= 0.0.0",
"mac_os_x": ">= 0.0.0"
},
"dependencies": {
"openssl": ">= 0.0.0",
"build-essential": ">= 0.0.0"
},
"recommendations": {
},
"suggestions": {
"homebrew": ">= 0.0.0",
"windows": ">= 0.0.0"
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
"mysql/server_root_password": {
"display_name": "MySQL Server Root Password",
"description": "Randomly generated password for the mysqld root user",
"default": "randomly generated",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/bind_address": {
"display_name": "MySQL Bind Address",
"description": "Address that mysqld should listen on",
"default": "ipaddress",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/data_dir": {
"display_name": "MySQL Data Directory",
"description": "Location of mysql databases",
"default": "/var/lib/mysql",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/conf_dir": {
"display_name": "MySQL Conf Directory",
"description": "Location of mysql conf files",
"default": "/etc/mysql",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/ec2_path": {
"display_name": "MySQL EC2 Path",
"description": "Location of mysql directory on EC2 instance EBS volumes",
"default": "/mnt/mysql",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/reload_action": {
"display_name": "MySQL conf file reload action",
"description": "Action to take when mysql conf files are modified",
"default": "reload",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable": {
"display_name": "MySQL Tunables",
"description": "Hash of MySQL tunable attributes",
"type": "hash",
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"mysql/tunable/key_buffer": {
"display_name": "MySQL Tuntable Key Buffer",
"default": "250M",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/max_connections": {
"display_name": "MySQL Tunable Max Connections",
"default": "800",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/wait_timeout": {
"display_name": "MySQL Tunable Wait Timeout",
"default": "180",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/net_read_timeout": {
"display_name": "MySQL Tunable Net Read Timeout",
"default": "30",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/net_write_timeout": {
"display_name": "MySQL Tunable Net Write Timeout",
"default": "30",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/back_log": {
"display_name": "MySQL Tunable Back Log",
"default": "128",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/table_cache": {
"display_name": "MySQL Tunable Table Cache for MySQL < 5.1.3",
"default": "128",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/table_open_cache": {
"display_name": "MySQL Tunable Table Cache for MySQL >= 5.1.3",
"default": "128",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/max_heap_table_size": {
"display_name": "MySQL Tunable Max Heap Table Size",
"default": "32M",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/expire_logs_days": {
"display_name": "MySQL Exipre Log Days",
"default": "10",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/tunable/max_binlog_size": {
"display_name": "MySQL Max Binlog Size",
"default": "100M",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client": {
"display_name": "MySQL Connector/C Client",
"description": "Hash of MySQL client attributes",
"type": "hash",
"choice": [
],
"calculated": false,
"required": "optional",
"recipes": [
]
},
"mysql/client/version": {
"display_name": "MySQL Connector/C Version",
"default": "6.0.2",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/arch": {
"display_name": "MySQL Connector/C Architecture",
"default": "win32",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/package_file": {
"display_name": "MySQL Connector/C Package File Name",
"default": "mysql-connector-c-6.0.2-win32.msi",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/url": {
"display_name": "MySQL Connector/C Download URL",
"default": "http://www.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.0.2-win32.msi/from/http://mysql.mirrors.pair.com/",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/package_name": {
"display_name": "MySQL Connector/C Registry DisplayName",
"default": "MySQL Connector C 6.0.2",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/basedir": {
"display_name": "MySQL Connector/C Base Install Directory",
"default": "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/lib_dir": {
"display_name": "MySQL Connector/C Library Directory (containing libmysql.dll)",
"default": "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2\\lib\\opt",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/bin_dir": {
"display_name": "MySQL Connector/C Executable Directory",
"default": "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2\\bin",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
},
"mysql/client/ruby_dir": {
"display_name": "Ruby Executable Directory which should gain MySQL support",
"default": "system ruby",
"choice": [
],
"calculated": false,
"type": "string",
"required": "optional",
"recipes": [
]
}
},
"groupings": {
},
"recipes": {
"mysql": "Includes the client recipe to configure a client",
"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"
},
"version": "1.3.0"
}