]> gitweb.fluxo.info Git - puppet-database.git/commitdiff
Config session name check
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jun 2018 11:13:25 +0000 (08:13 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jun 2018 11:13:25 +0000 (08:13 -0300)
manifests/config.pp

index 929423c5a45d241ecd7525149f0300c782f5ca00..faa19e447fb5f3a06ab6207d07232b5478a44876 100644 (file)
@@ -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}"]) {