diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-07 08:13:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-07 08:13:25 -0300 |
commit | 2e3065b3fcb44651a1e3c08f5824f12dc0f10bdf (patch) | |
tree | bb6389aebff99afb9ec07112744e5e77fb5e8c09 | |
parent | 89d73990583c213adff17dea5d5849e090f61331 (diff) | |
download | puppet-database-2e3065b3fcb44651a1e3c08f5824f12dc0f10bdf.tar.gz puppet-database-2e3065b3fcb44651a1e3c08f5824f12dc0f10bdf.tar.bz2 |
Config session name check
-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}"]) { |