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

index faa19e447fb5f3a06ab6207d07232b5478a44876..922697112818cfc1147ac667cc0587d9ed729b17 100644 (file)
@@ -26,7 +26,7 @@ define database::config(
   }
 
   # Old file
-  if $real_section != $section {
+  if $real_section != 'conf.d' {
     file { "/etc/mysql/conf.d/${name}.cnf":
       ensure => absent,
     }