Mercurial > repos > other > Puppet
annotate modules/mysql/manifests/params.pp @ 389:668df4711671
Update MySQL modules
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 03 Jan 2022 17:16:21 +0000 |
parents | 48d3a1948e4d |
children | c6c9a2cfcfbd |
rev | line source |
---|---|
244 | 1 # @summary |
2 # Params class. | |
3 # | |
4 # @api private | |
5 # | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 class mysql::params { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
7 $manage_config_file = true |
389 | 8 $config_file_mode = '0644' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 $purge_conf_dir = false |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 $restart = false |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
11 $root_password = 'UNSET' |
244 | 12 $install_secret_file = '/.mysql_secret' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 $server_package_ensure = 'present' |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
14 $server_package_manage = true |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
15 $server_service_manage = true |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
16 $server_service_enabled = true |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
17 $client_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
18 $client_package_manage = true |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
19 $create_root_user = true |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
20 $create_root_my_cnf = true |
244 | 21 $create_root_login_file = false |
22 $login_file = undef | |
23 $exec_path = '' | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
24 # mysql::bindings |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
25 $bindings_enable = false |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
26 $java_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
27 $java_package_provider = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
28 $perl_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
29 $perl_package_provider = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
30 $php_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
31 $php_package_provider = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
32 $python_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
33 $python_package_provider = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
34 $ruby_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
35 $ruby_package_provider = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
36 $client_dev_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
37 $client_dev_package_provider = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
38 $daemon_dev_package_ensure = 'present' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
39 $daemon_dev_package_provider = undef |
389 | 40 $xtrabackup_package_name_default = 'percona-xtrabackup' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
41 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
42 case $::osfamily { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
43 'RedHat': { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
44 case $::operatingsystem { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
45 'Fedora': { |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
46 if versioncmp($::operatingsystemrelease, '19') >= 0 or $::operatingsystemrelease == 'Rawhide' { |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
47 $provider = 'mariadb' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
48 } else { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
49 $provider = 'mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
50 } |
244 | 51 $python_package_name = 'MySQL-python' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
52 } |
389 | 53 'Amazon': { |
54 if versioncmp($::operatingsystemrelease, '2') >= 0 { | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
55 $provider = 'mariadb' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
56 } else { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
57 $provider = 'mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
58 } |
389 | 59 } |
60 /^(RedHat|Rocky|CentOS|Scientific|OracleLinux)$/: { | |
61 if versioncmp($::operatingsystemmajrelease, '7') >= 0 { | |
62 $provider = 'mariadb' | |
63 if versioncmp($::operatingsystemmajrelease, '8') >= 0 { | |
64 $xtrabackup_package_name_override = 'percona-xtrabackup-24' | |
65 } | |
66 } else { | |
67 $provider = 'mysql' | |
68 $xtrabackup_package_name_override = 'percona-xtrabackup-20' | |
69 } | |
244 | 70 if versioncmp($::operatingsystemmajrelease, '8') >= 0 { |
71 $java_package_name = 'mariadb-java-client' | |
72 $python_package_name = 'python3-PyMySQL' | |
73 } else { | |
74 $java_package_name = 'mysql-connector-java' | |
75 $python_package_name = 'MySQL-python' | |
76 } | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
77 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
78 default: { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
79 $provider = 'mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
80 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
81 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
82 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
83 if $provider == 'mariadb' { |
244 | 84 $client_package_name = 'mariadb' |
85 $server_package_name = 'mariadb-server' | |
86 $server_service_name = 'mariadb' | |
87 $log_error = '/var/log/mariadb/mariadb.log' | |
88 $config_file = '/etc/my.cnf.d/server.cnf' | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
89 # mariadb package by default has !includedir set in my.cnf to /etc/my.cnf.d |
244 | 90 $includedir = undef |
91 $pidfile = '/var/run/mariadb/mariadb.pid' | |
92 $daemon_dev_package_name = 'mariadb-devel' | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
93 } else { |
244 | 94 $client_package_name = 'mysql' |
95 $server_package_name = 'mysql-server' | |
96 $server_service_name = 'mysqld' | |
97 $log_error = '/var/log/mysqld.log' | |
98 $config_file = '/etc/my.cnf' | |
99 $includedir = '/etc/my.cnf.d' | |
100 $pidfile = '/var/run/mysqld/mysqld.pid' | |
101 $daemon_dev_package_name = 'mysql-devel' | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
102 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
103 |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
104 $basedir = '/usr' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
105 $datadir = '/var/lib/mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
106 $root_group = 'root' |
244 | 107 $mysql_group = 'mysql' |
389 | 108 $mycnf_owner = undef |
109 $mycnf_group = undef | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
110 $socket = '/var/lib/mysql/mysql.sock' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
111 $ssl_ca = '/etc/mysql/cacert.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
112 $ssl_cert = '/etc/mysql/server-cert.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
113 $ssl_key = '/etc/mysql/server-key.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
114 $tmpdir = '/tmp' |
389 | 115 $managed_dirs = undef |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
116 # mysql::bindings |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
117 $perl_package_name = 'perl-DBD-MySQL' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
118 $php_package_name = 'php-mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
119 $ruby_package_name = 'ruby-mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
120 $client_dev_package_name = undef |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
121 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
122 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
123 'Suse': { |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
124 case $::operatingsystem { |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
125 'OpenSuSE': { |
389 | 126 $socket = '/var/run/mysql/mysql.sock' |
127 $log_error = '/var/log/mysql/mysqld.log' | |
128 $pidfile = '/var/run/mysql/mysqld.pid' | |
129 $ruby_package_name = 'rubygem-mysql' | |
130 $client_package_name = 'mariadb-client' | |
131 $server_package_name = 'mariadb' | |
132 # First service start fails if this is set. Runs fine without | |
133 # it being set, in any case. Leaving it as-is for the mysql. | |
134 $basedir = undef | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
135 } |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
136 'SLES','SLED': { |
389 | 137 $socket = '/run/mysql/mysql.sock' |
138 $log_error = '/var/log/mysqld.log' | |
139 $pidfile = '/var/lib/mysql/mysqld.pid' | |
140 $ruby_package_name = 'ruby-mysql' | |
141 $client_package_name = 'mariadb-client' | |
142 $server_package_name = 'mariadb' | |
143 $basedir = undef | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
144 } |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
145 default: { |
389 | 146 fail("Unsupported platform: puppetlabs-${module_name} currently doesn\'t support ${::operatingsystem}.") |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
147 } |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
148 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
149 $config_file = '/etc/my.cnf' |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
150 $includedir = '/etc/my.cnf.d' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
151 $datadir = '/var/lib/mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
152 $root_group = 'root' |
244 | 153 $mysql_group = 'mysql' |
389 | 154 $mycnf_owner = undef |
155 $mycnf_group = undef | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
156 $server_service_name = 'mysql' |
389 | 157 $xtrabackup_package_name_override = 'xtrabackup' |
244 | 158 |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
159 $ssl_ca = '/etc/mysql/cacert.pem' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
160 $ssl_cert = '/etc/mysql/server-cert.pem' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
161 $ssl_key = '/etc/mysql/server-key.pem' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
162 $tmpdir = '/tmp' |
389 | 163 $managed_dirs = undef |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
164 # mysql::bindings |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
165 $java_package_name = 'mysql-connector-java' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
166 $perl_package_name = 'perl-DBD-mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
167 $php_package_name = 'apache2-mod_php53' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
168 $python_package_name = 'python-mysql' |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
169 $client_dev_package_name = 'libmysqlclient-devel' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
170 $daemon_dev_package_name = 'mysql-devel' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
171 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
172 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
173 'Debian': { |
389 | 174 if $::operatingsystem == 'Debian' { |
244 | 175 $provider = 'mariadb' |
389 | 176 } else { # Ubuntu |
244 | 177 $provider = 'mysql' |
178 } | |
179 if $provider == 'mariadb' { | |
180 $client_package_name = 'mariadb-client' | |
181 $server_package_name = 'mariadb-server' | |
182 $server_service_name = 'mariadb' | |
183 $client_dev_package_name = 'libmariadbclient-dev' | |
184 $daemon_dev_package_name = 'libmariadbd-dev' | |
185 } else { | |
186 $client_package_name = 'mysql-client' | |
187 $server_package_name = 'mysql-server' | |
188 $server_service_name = 'mysql' | |
189 $client_dev_package_name = 'libmysqlclient-dev' | |
190 $daemon_dev_package_name = 'libmysqld-dev' | |
191 } | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
192 |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
193 $basedir = '/usr' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
194 $config_file = '/etc/mysql/my.cnf' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
195 $includedir = '/etc/mysql/conf.d' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
196 $datadir = '/var/lib/mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
197 $log_error = '/var/log/mysql/error.log' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
198 $pidfile = '/var/run/mysqld/mysqld.pid' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
199 $root_group = 'root' |
244 | 200 $mysql_group = 'adm' |
389 | 201 $mycnf_owner = undef |
202 $mycnf_group = undef | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
203 $socket = '/var/run/mysqld/mysqld.sock' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
204 $ssl_ca = '/etc/mysql/cacert.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
205 $ssl_cert = '/etc/mysql/server-cert.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
206 $ssl_key = '/etc/mysql/server-key.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
207 $tmpdir = '/tmp' |
389 | 208 $managed_dirs = ['tmpdir','basedir','datadir','innodb_data_home_dir','innodb_log_group_home_dir','innodb_undo_directory','innodb_tmpdir'] |
209 | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
210 # mysql::bindings |
389 | 211 if ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '10') >= 0) or |
212 ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '20.04') >= 0) { | |
244 | 213 $java_package_name = 'libmariadb-java' |
214 } else { | |
215 $java_package_name = 'libmysql-java' | |
216 } | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
217 $perl_package_name = 'libdbd-mysql-perl' |
244 | 218 if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '16.04') >= 0) or |
389 | 219 ($::operatingsystem == 'Debian') { |
244 | 220 $php_package_name = 'php-mysql' |
221 } else { | |
222 $php_package_name = 'php5-mysql' | |
223 } | |
389 | 224 if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '16.04') < 0) or |
225 ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '20.04') >= 0) or | |
226 ($::operatingsystem == 'Debian') { | |
227 $xtrabackup_package_name_override = 'percona-xtrabackup-24' | |
228 } | |
229 if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '20.04') >= 0) or | |
230 ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '11') >= 0){ | |
231 $python_package_name = 'python3-mysqldb' | |
232 } else { | |
233 $python_package_name = 'python-mysqldb' | |
234 } | |
244 | 235 |
389 | 236 $ruby_package_name = $facts['os']['release']['major'] ? { |
237 '9' => 'ruby-mysql2', # stretch | |
238 '10' => 'ruby-mysql2', # buster | |
239 '16.04' => 'ruby-mysql', # xenial | |
240 '18.04' => 'ruby-mysql2', # bionic | |
241 '20.04' => 'ruby-mysql2', # focal | |
242 default => 'libmysql-ruby', | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
243 } |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
244 } |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
245 |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
246 'Archlinux': { |
244 | 247 $daemon_dev_package_name = undef |
248 $client_dev_package_name = undef | |
249 $includedir = undef | |
250 $client_package_name = 'mariadb-clients' | |
251 $server_package_name = 'mariadb' | |
252 $basedir = '/usr' | |
253 $config_file = '/etc/mysql/my.cnf' | |
254 $datadir = '/var/lib/mysql' | |
255 $log_error = '/var/log/mysqld.log' | |
256 $pidfile = '/var/run/mysqld/mysqld.pid' | |
257 $root_group = 'root' | |
258 $mysql_group = 'mysql' | |
389 | 259 $mycnf_owner = undef |
260 $mycnf_group = undef | |
244 | 261 $server_service_name = 'mysqld' |
262 $socket = '/var/lib/mysql/mysql.sock' | |
263 $ssl_ca = '/etc/mysql/cacert.pem' | |
264 $ssl_cert = '/etc/mysql/server-cert.pem' | |
265 $ssl_key = '/etc/mysql/server-key.pem' | |
266 $tmpdir = '/tmp' | |
389 | 267 $managed_dirs = undef |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
268 # mysql::bindings |
244 | 269 $java_package_name = 'mysql-connector-java' |
270 $perl_package_name = 'perl-dbd-mysql' | |
271 $php_package_name = undef | |
272 $python_package_name = 'mysql-python' | |
273 $ruby_package_name = 'mysql-ruby' | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
274 } |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
275 |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
276 'Gentoo': { |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
277 $client_package_name = 'virtual/mysql' |
244 | 278 $includedir = undef |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
279 $server_package_name = 'virtual/mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
280 $basedir = '/usr' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
281 $config_file = '/etc/mysql/my.cnf' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
282 $datadir = '/var/lib/mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
283 $log_error = '/var/log/mysql/mysqld.err' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
284 $pidfile = '/run/mysqld/mysqld.pid' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
285 $root_group = 'root' |
244 | 286 $mysql_group = 'mysql' |
389 | 287 $mycnf_owner = undef |
288 $mycnf_group = undef | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
289 $server_service_name = 'mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
290 $socket = '/run/mysqld/mysqld.sock' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
291 $ssl_ca = '/etc/mysql/cacert.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
292 $ssl_cert = '/etc/mysql/server-cert.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
293 $ssl_key = '/etc/mysql/server-key.pem' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
294 $tmpdir = '/tmp' |
389 | 295 $managed_dirs = undef |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
296 # mysql::bindings |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
297 $java_package_name = 'dev-java/jdbc-mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
298 $perl_package_name = 'dev-perl/DBD-mysql' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
299 $php_package_name = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
300 $python_package_name = 'dev-python/mysql-python' |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
301 $ruby_package_name = 'dev-ruby/mysql-ruby' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
302 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
303 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
304 'FreeBSD': { |
389 | 305 $client_package_name = 'databases/mysql57-client' |
306 $server_package_name = 'databases/mysql57-server' | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
307 $basedir = '/usr/local' |
244 | 308 $config_file = '/usr/local/etc/my.cnf' |
309 $includedir = '/usr/local/etc/my.cnf.d' | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
310 $datadir = '/var/db/mysql' |
244 | 311 $log_error = '/var/log/mysqld.log' |
312 $pidfile = '/var/run/mysql.pid' | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
313 $root_group = 'wheel' |
244 | 314 $mysql_group = 'mysql' |
389 | 315 $mycnf_owner = undef |
316 $mycnf_group = undef | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
317 $server_service_name = 'mysql-server' |
244 | 318 $socket = '/var/db/mysql/mysql.sock' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
319 $ssl_ca = undef |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
320 $ssl_cert = undef |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
321 $ssl_key = undef |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
322 $tmpdir = '/tmp' |
389 | 323 $managed_dirs = undef |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
324 # mysql::bindings |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
325 $java_package_name = 'databases/mysql-connector-java' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
326 $perl_package_name = 'p5-DBD-mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
327 $php_package_name = 'php5-mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
328 $python_package_name = 'databases/py-MySQLdb' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
329 $ruby_package_name = 'databases/ruby-mysql' |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
330 # The libraries installed by these packages are included in client and server packages, no installation required. |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
331 $client_dev_package_name = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
332 $daemon_dev_package_name = undef |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
333 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
334 |
244 | 335 'OpenBSD': { |
336 $client_package_name = 'mariadb-client' | |
337 $server_package_name = 'mariadb-server' | |
338 $basedir = '/usr/local' | |
339 $config_file = '/etc/my.cnf' | |
340 $includedir = undef | |
341 $datadir = '/var/mysql' | |
342 $log_error = "/var/mysql/${::hostname}.err" | |
343 $pidfile = '/var/mysql/mysql.pid' | |
344 $root_group = 'wheel' | |
345 $mysql_group = '_mysql' | |
389 | 346 $mycnf_owner = undef |
347 $mycnf_group = undef | |
244 | 348 $server_service_name = 'mysqld' |
349 $socket = '/var/run/mysql/mysql.sock' | |
350 $ssl_ca = undef | |
351 $ssl_cert = undef | |
352 $ssl_key = undef | |
353 $tmpdir = '/tmp' | |
389 | 354 $managed_dirs = undef |
244 | 355 # mysql::bindings |
356 $java_package_name = undef | |
357 $perl_package_name = 'p5-DBD-mysql' | |
358 $php_package_name = 'php-mysql' | |
359 $python_package_name = 'py-mysql' | |
360 $ruby_package_name = 'ruby-mysql' | |
361 # The libraries installed by these packages are included in client and server packages, no installation required. | |
362 $client_dev_package_name = undef | |
363 $daemon_dev_package_name = undef | |
364 } | |
365 | |
366 'Solaris': { | |
367 $client_package_name = 'database/mysql-55/client' | |
368 $server_package_name = 'database/mysql-55' | |
369 $basedir = undef | |
370 $config_file = '/etc/mysql/5.5/my.cnf' | |
371 $datadir = '/var/mysql/5.5/data' | |
372 $log_error = "/var/mysql/5.5/data/${::hostname}.err" | |
373 $pidfile = "/var/mysql/5.5/data/${::hostname}.pid" | |
374 $root_group = 'bin' | |
375 $server_service_name = 'application/database/mysql:version_55' | |
376 $socket = '/tmp/mysql.sock' | |
377 $ssl_ca = undef | |
378 $ssl_cert = undef | |
379 $ssl_key = undef | |
380 $tmpdir = '/tmp' | |
389 | 381 $managed_dirs = undef |
244 | 382 # mysql::bindings |
383 $java_package_name = undef | |
384 $perl_package_name = undef | |
385 $php_package_name = 'web/php-53/extension/php-mysql' | |
386 $python_package_name = 'library/python/python-mysql' | |
387 $ruby_package_name = undef | |
388 # The libraries installed by these packages are included in client and server packages, no installation required. | |
389 $client_dev_package_name = undef | |
390 $daemon_dev_package_name = undef | |
391 } | |
392 | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
393 default: { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
394 case $::operatingsystem { |
244 | 395 'Alpine': { |
396 $client_package_name = 'mariadb-client' | |
397 $server_package_name = 'mariadb' | |
398 $basedir = '/usr' | |
399 $config_file = '/etc/mysql/my.cnf' | |
400 $datadir = '/var/lib/mysql' | |
401 $log_error = '/var/log/mysqld.log' | |
402 $pidfile = '/run/mysqld/mysqld.pid' | |
403 $root_group = 'root' | |
404 $mysql_group = 'mysql' | |
389 | 405 $mycnf_owner = undef |
406 $mycnf_group = undef | |
244 | 407 $server_service_name = 'mariadb' |
408 $socket = '/run/mysqld/mysqld.sock' | |
409 $ssl_ca = '/etc/mysql/cacert.pem' | |
410 $ssl_cert = '/etc/mysql/server-cert.pem' | |
411 $ssl_key = '/etc/mysql/server-key.pem' | |
412 $tmpdir = '/tmp' | |
389 | 413 $managed_dirs = undef |
244 | 414 $java_package_name = undef |
415 $perl_package_name = 'perl-dbd-mysql' | |
416 $php_package_name = 'php7-mysqlnd' | |
417 $python_package_name = 'py-mysqldb' | |
418 $ruby_package_name = undef | |
419 $client_dev_package_name = undef | |
420 $daemon_dev_package_name = undef | |
421 } | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
422 'Amazon': { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
423 $client_package_name = 'mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
424 $server_package_name = 'mysql-server' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
425 $basedir = '/usr' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
426 $config_file = '/etc/my.cnf' |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
427 $includedir = '/etc/my.cnf.d' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
428 $datadir = '/var/lib/mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
429 $log_error = '/var/log/mysqld.log' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
430 $pidfile = '/var/run/mysqld/mysqld.pid' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
431 $root_group = 'root' |
244 | 432 $mysql_group = 'mysql' |
389 | 433 $mycnf_owner = undef |
434 $mycnf_group = undef | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
435 $server_service_name = 'mysqld' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
436 $socket = '/var/lib/mysql/mysql.sock' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
437 $ssl_ca = '/etc/mysql/cacert.pem' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
438 $ssl_cert = '/etc/mysql/server-cert.pem' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
439 $ssl_key = '/etc/mysql/server-key.pem' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
440 $tmpdir = '/tmp' |
389 | 441 $managed_dirs = undef |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
442 # mysql::bindings |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
443 $java_package_name = 'mysql-connector-java' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
444 $perl_package_name = 'perl-DBD-MySQL' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
445 $php_package_name = 'php-mysql' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
446 $python_package_name = 'MySQL-python' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
447 $ruby_package_name = 'ruby-mysql' |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
448 # The libraries installed by these packages are included in client and server packages, no installation required. |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
449 $client_dev_package_name = undef |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
450 $daemon_dev_package_name = undef |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
451 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
452 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
453 default: { |
389 | 454 fail("Unsupported platform: puppetlabs-${module_name} currently doesn\'t support ${::osfamily} or ${::operatingsystem}.") |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
455 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
456 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
457 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
458 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
459 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
460 case $::operatingsystem { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
461 'Ubuntu': { |
389 | 462 $server_service_provider = 'systemd' |
244 | 463 } |
464 'Alpine': { | |
465 $server_service_provider = 'rc-service' | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
466 } |
389 | 467 'FreeBSD': { |
468 $server_service_provider = 'freebsd' | |
469 } | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
470 default: { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
471 $server_service_provider = undef |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
472 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
473 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
474 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
475 $default_options = { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
476 'client' => { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
477 'port' => '3306', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
478 'socket' => $mysql::params::socket, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
479 }, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
480 'mysqld_safe' => { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
481 'nice' => '0', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
482 'log-error' => $mysql::params::log_error, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
483 'socket' => $mysql::params::socket, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
484 }, |
244 | 485 'mysqld-5.0' => { |
486 'myisam-recover' => 'BACKUP', | |
487 }, | |
488 'mysqld-5.1' => { | |
489 'myisam-recover' => 'BACKUP', | |
490 }, | |
491 'mysqld-5.5' => { | |
492 'myisam-recover' => 'BACKUP', | |
493 'query_cache_limit' => '1M', | |
494 'query_cache_size' => '16M', | |
495 }, | |
496 'mysqld-5.6' => { | |
497 'myisam-recover-options' => 'BACKUP', | |
498 'query_cache_limit' => '1M', | |
499 'query_cache_size' => '16M', | |
500 }, | |
501 'mysqld-5.7' => { | |
502 'myisam-recover-options' => 'BACKUP', | |
503 'query_cache_limit' => '1M', | |
504 'query_cache_size' => '16M', | |
505 }, | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
506 'mysqld' => { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
507 'basedir' => $mysql::params::basedir, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
508 'bind-address' => '127.0.0.1', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
509 'datadir' => $mysql::params::datadir, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
510 'expire_logs_days' => '10', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
511 'key_buffer_size' => '16M', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
512 'log-error' => $mysql::params::log_error, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
513 'max_allowed_packet' => '16M', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
514 'max_binlog_size' => '100M', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
515 'max_connections' => '151', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
516 'pid-file' => $mysql::params::pidfile, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
517 'port' => '3306', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
518 'skip-external-locking' => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
519 'socket' => $mysql::params::socket, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
520 'ssl' => false, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
521 'ssl-ca' => $mysql::params::ssl_ca, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
522 'ssl-cert' => $mysql::params::ssl_cert, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
523 'ssl-key' => $mysql::params::ssl_key, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
524 'ssl-disable' => false, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
525 'thread_cache_size' => '8', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
526 'thread_stack' => '256K', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
527 'tmpdir' => $mysql::params::tmpdir, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
528 'user' => 'mysql', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
529 }, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
530 'mysqldump' => { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
531 'max_allowed_packet' => '16M', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
532 'quick' => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
533 'quote-names' => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
534 }, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
535 'isamchk' => { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
536 'key_buffer_size' => '16M', |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
537 }, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
538 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
539 |
389 | 540 if defined('$xtrabackup_package_name_override') { |
541 $xtrabackup_package_name = pick($xtrabackup_package_name_override, $xtrabackup_package_name_default) | |
542 } else { | |
543 $xtrabackup_package_name = $xtrabackup_package_name_default | |
544 } | |
545 | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
546 ## Additional graceful failures |
244 | 547 if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '4' and $::operatingsystem != 'Amazon' { |
389 | 548 fail("Unsupported platform: puppetlabs-${module_name} only supports RedHat 6.0 and beyond.") |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
549 } |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
550 } |