introduce the /etc/mysql/conf.d/ directory for CentOS
This commit is contained in:
parent
6d485b1693
commit
c38546e15f
2 changed files with 18 additions and 0 deletions
|
@ -84,3 +84,4 @@ quick
|
|||
max_allowed_packet = 16M
|
||||
default-character-set=utf8
|
||||
|
||||
!includedir /etc/mysql/conf.d/
|
||||
|
|
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue