aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
+ },
}
}