comparison modules/mysql/manifests/server/config.pp @ 0:956e484adc12

Initial public release of Puppet configs
author IBBoard <dev@ibboard.co.uk>
date Sat, 16 Aug 2014 19:47:38 +0000
parents
children 58d1818c2ded
comparison
equal deleted inserted replaced
-1:000000000000 0:956e484adc12
1 # See README.me for options.
2 class mysql::server::config {
3
4 $options = $mysql::server::options
5
6 File {
7 owner => 'root',
8 group => $mysql::server::root_group,
9 mode => '0400',
10 }
11
12 file { '/etc/mysql':
13 ensure => directory,
14 mode => '0755',
15 }
16
17 file { '/etc/mysql/conf.d':
18 ensure => directory,
19 mode => '0755',
20 recurse => $mysql::server::purge_conf_dir,
21 purge => $mysql::server::purge_conf_dir,
22 }
23
24 if $mysql::server::manage_config_file {
25 file { $mysql::server::config_file:
26 content => template('mysql/my.cnf.erb'),
27 mode => '0644',
28 }
29 }
30
31 if $options['mysqld']['ssl-disable'] {
32 notify {'ssl-disable':
33 message =>'Disabling SSL is evil! You should never ever do this except if you are forced to use a mysql version compiled without SSL support'
34 }
35 }
36 }