introduce the /etc/mysql/conf.d/ directory for CentOS

This commit is contained in:
mh 2013-12-05 20:14:04 +01:00
parent 6d485b1693
commit c38546e15f
2 changed files with 18 additions and 0 deletions

View file

@ -84,3 +84,4 @@ quick
max_allowed_packet = 16M
default-character-set=utf8
!includedir /etc/mysql/conf.d/

View file

@ -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'];
}
}