add parameter to remove old files in conf.d dir
This commit is contained in:
parent
af4b8bff0a
commit
c5a4740883
1 changed files with 6 additions and 3 deletions
|
@ -51,7 +51,8 @@ class mysql::config(
|
|||
$log_error = $mysql::params::log_error,
|
||||
$default_engine = 'UNSET',
|
||||
$root_group = $mysql::params::root_group,
|
||||
$restart = $mysql::params::restart
|
||||
$restart = $mysql::params::restart,
|
||||
$purge_conf_dir = false
|
||||
) inherits mysql::params {
|
||||
|
||||
File {
|
||||
|
@ -129,6 +130,8 @@ class mysql::config(
|
|||
file { '/etc/mysql/conf.d':
|
||||
ensure => directory,
|
||||
mode => '0755',
|
||||
recurse => $purge_conf_dir,
|
||||
purge => $purge_conf_dir,
|
||||
}
|
||||
file { $config_file:
|
||||
content => template('mysql/my.cnf.erb'),
|
||||
|
|
Loading…
Reference in a new issue