summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-07 07:53:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-07 07:53:48 -0300
commitbf4a9f8d4e5c440209cd6eda9c664fb7f5cb1c9b (patch)
tree870f27ae645a103b8c6f7f5953d7274f575111a2
parent17257fb8ff3cdd27a58367454b1320bb69fc5107 (diff)
downloadpuppet-database-bf4a9f8d4e5c440209cd6eda9c664fb7f5cb1c9b.tar.gz
puppet-database-bf4a9f8d4e5c440209cd6eda9c664fb7f5cb1c9b.tar.bz2
Check if mysql config folder is already defined
-rw-r--r--manifests/config.pp12
1 files changed, 7 insertions, 5 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 45fa003..491e81f 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -27,11 +27,13 @@ define database::config(
ensure => absent,
}
- file { "/etc/mysql/${real_section}":
- ensure => directory,
- owner => root,
- group => root,
- mode => '0755',
+ if !defined(File["/etc/mysql/${real_section}") {
+ file { "/etc/mysql/${real_section}":
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => '0755',
+ }
}
file { "/etc/mysql/${real_section}/${order}-${name}.cnf":