diff options
-rw-r--r-- | manifests/config.pp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index 929423c..faa19e4 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -26,8 +26,10 @@ define database::config( } # Old file - file { "/etc/mysql/conf.d/${name}.cnf": - ensure => absent, + if $real_section != $section { + file { "/etc/mysql/conf.d/${name}.cnf": + ensure => absent, + } } if !defined(File["/etc/mysql/${real_section}"]) { |