forked from sous-chefs/mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
140 lines (110 loc) · 4.72 KB
/
metadata.rb
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
name "mysql"
maintainer "Opscode, Inc."
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs and configures mysql for client or server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "3.0.3"
recipe "mysql", "Includes the client recipe to configure a client"
recipe "mysql::client", "Installs packages required for mysql clients using run_action magic"
recipe "mysql::server", "Installs packages required for mysql servers w/o manual intervention"
recipe "mysql::server_ec2", "Performs EC2-specific mountpoint manipulation"
%w{ debian ubuntu centos suse fedora redhat scientific amazon freebsd windows mac_os_x }.each do |os|
supports os
end
depends "openssl"
depends "build-essential", "> 1.1.0"
suggests "homebrew"
suggests "windows"
attribute "mysql/server_root_password",
:display_name => "MySQL Server Root Password",
:description => "Randomly generated password for the mysqld root user",
:default => "randomly generated"
attribute "mysql/bind_address",
:display_name => "MySQL Bind Address",
:description => "Address that mysqld should listen on",
:default => "ipaddress"
attribute "mysql/data_dir",
:display_name => "MySQL Data Directory",
:description => "Location of mysql databases",
:default => "/var/lib/mysql"
attribute "mysql/conf_dir",
:display_name => "MySQL Conf Directory",
:description => "Location of mysql conf files",
:default => "/etc/mysql"
attribute "mysql/ec2_path",
:display_name => "MySQL EC2 Path",
:description => "Location of mysql directory on EC2 instance EBS volumes",
:default => "/mnt/mysql"
attribute "mysql/reload_action",
:display_name => "MySQL conf file reload action",
:description => "Action to take when mysql conf files are modified",
:default => "reload"
attribute "mysql/tunable",
:display_name => "MySQL Tunables",
:description => "Hash of MySQL tunable attributes",
:type => "hash"
attribute "mysql/tunable/key_buffer",
:display_name => "MySQL Tuntable Key Buffer",
:default => "250M"
attribute "mysql/tunable/max_connections",
:display_name => "MySQL Tunable Max Connections",
:default => "800"
attribute "mysql/tunable/wait_timeout",
:display_name => "MySQL Tunable Wait Timeout",
:default => "180"
attribute "mysql/tunable/net_read_timeout",
:display_name => "MySQL Tunable Net Read Timeout",
:default => "30"
attribute "mysql/tunable/net_write_timeout",
:display_name => "MySQL Tunable Net Write Timeout",
:default => "30"
attribute "mysql/tunable/back_log",
:display_name => "MySQL Tunable Back Log",
:default => "128"
attribute "mysql/tunable/table_cache",
:display_name => "MySQL Tunable Table Cache for MySQL < 5.1.3",
:default => "128"
attribute "mysql/tunable/table_open_cache",
:display_name => "MySQL Tunable Table Cache for MySQL >= 5.1.3",
:default => "128"
attribute "mysql/tunable/max_heap_table_size",
:display_name => "MySQL Tunable Max Heap Table Size",
:default => "32M"
attribute "mysql/tunable/expire_logs_days",
:display_name => "MySQL Exipre Log Days",
:default => "10"
attribute "mysql/tunable/max_binlog_size",
:display_name => "MySQL Max Binlog Size",
:default => "100M"
attribute "mysql/client",
:display_name => "MySQL Connector/C Client",
:description => "Hash of MySQL client attributes",
:type => "hash"
attribute "mysql/client/version",
:display_name => "MySQL Connector/C Version",
:default => "6.0.2"
attribute "mysql/client/arch",
:display_name => "MySQL Connector/C Architecture",
:default => "win32"
attribute "mysql/client/package_file",
:display_name => "MySQL Connector/C Package File Name",
:default => "mysql-connector-c-6.0.2-win32.msi"
attribute "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/"
attribute "mysql/client/package_name",
:display_name => "MySQL Connector/C Registry DisplayName",
:default => "MySQL Connector C 6.0.2"
attribute "mysql/client/basedir",
:display_name => "MySQL Connector/C Base Install Directory",
:default => "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2"
attribute "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"
attribute "mysql/client/bin_dir",
:display_name => "MySQL Connector/C Executable Directory",
:default => "C:\\Program Files (x86)\\MySQL\\Connector C 6.0.2\\bin"
attribute "mysql/client/ruby_dir",
:display_name => "Ruby Executable Directory which should gain MySQL support",
:default => "system ruby"