summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-07 08:13:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-07 08:13:25 -0300
commit2e3065b3fcb44651a1e3c08f5824f12dc0f10bdf (patch)
treebb6389aebff99afb9ec07112744e5e77fb5e8c09
parent89d73990583c213adff17dea5d5849e090f61331 (diff)
downloadpuppet-database-2e3065b3fcb44651a1e3c08f5824f12dc0f10bdf.tar.gz
puppet-database-2e3065b3fcb44651a1e3c08f5824f12dc0f10bdf.tar.bz2
Config session name check
-rw-r--r--manifests/config.pp6
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}"]) {