diff --git a/files/config/my.cnf.CentOS b/files/config/my.cnf.CentOS index 58090f7..1abf15c 100644 --- a/files/config/my.cnf.CentOS +++ b/files/config/my.cnf.CentOS @@ -84,3 +84,4 @@ quick max_allowed_packet = 16M default-character-set=utf8 +!includedir /etc/mysql/conf.d/ diff --git a/manifests/server/centos.pp b/manifests/server/centos.pp index a55a57f..50678cf 100644 --- a/manifests/server/centos.pp +++ b/manifests/server/centos.pp @@ -6,4 +6,21 @@ class mysql::server::centos inherits mysql::server::clientpackage { File['mysql_main_cnf']{ path => '/etc/my.cnf', } + + file{ + '/etc/mysql': + ensure => directory, + owner => root, + group => 0, + mode => '0644'; + '/etc/mysql/conf.d': + ensure => directory, + recurse => true, + purge => true, + force => true, + owner => root, + group => 0, + mode => '0644', + notify => Service['mysql']; + } }