aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-31 09:28:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-31 09:28:09 -0300
commit77e37b29cdb219f297e7b951515fd9eba28b70ea (patch)
tree36237e020db8872e729974c97be8606b26920fa6
parent5d66d68cba5c37b91c46f7a500b4bf85b6e9df89 (diff)
downloadpuppet-backup-77e37b29cdb219f297e7b951515fd9eba28b70ea.tar.gz
puppet-backup-77e37b29cdb219f297e7b951515fd9eba28b70ea.tar.bz2
Fix cronjob ensurable state at backup::borg
-rw-r--r--manifests/borg.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/borg.pp b/manifests/borg.pp
index eff0f74..a1d82e8 100644
--- a/manifests/borg.pp
+++ b/manifests/borg.pp
@@ -30,6 +30,9 @@ define backup::borg(
hour => "0",
minute => "0",
weekday => "0",
- ensure => $periodic_check,
+ ensure => $ensure ? {
+ 'present' => $periodic_check,
+ default => absent,
+ },
}
}