Mercurial > repos > other > Puppet
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/mysql/manifests/server/config.pp Sat Aug 16 19:47:38 2014 +0000 @@ -0,0 +1,36 @@ +# See README.me for options. +class mysql::server::config { + + $options = $mysql::server::options + + File { + owner => 'root', + group => $mysql::server::root_group, + mode => '0400', + } + + file { '/etc/mysql': + ensure => directory, + mode => '0755', + } + + file { '/etc/mysql/conf.d': + ensure => directory, + mode => '0755', + recurse => $mysql::server::purge_conf_dir, + purge => $mysql::server::purge_conf_dir, + } + + if $mysql::server::manage_config_file { + file { $mysql::server::config_file: + content => template('mysql/my.cnf.erb'), + mode => '0644', + } + } + + if $options['mysqld']['ssl-disable'] { + notify {'ssl-disable': + 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' + } + } +}