aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-06 17:12:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-06 17:12:15 -0300
commit1cb8f09877a7e1bf2ef3a2cd35d846ab2ffeec7b (patch)
treecab3e48954b9ee14a396e674b52d65db0190e1cd
parentb4657888b560aed7885d2a9248bdb00604976257 (diff)
downloadpuppet-backupninja-1cb8f09877a7e1bf2ef3a2cd35d846ab2ffeec7b.tar.gz
puppet-backupninja-1cb8f09877a7e1bf2ef3a2cd35d846ab2ffeec7b.tar.bz2
Support for '' variable
-rw-r--r--manifests/server.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index b01c042..417b3e6 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -19,6 +19,10 @@ class backupninja::server {
'' => $fqdn,
default => $backupserver_tag
}
+ $real_backupdir_ensure = $backupdir_ensure ? {
+ '' => "directory",
+ default => $backupdir_ensure,
+ }
group { "backupninjas":
ensure => "present",