]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Fix cronjob ensurable state at backup::borg
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 12:28:09 +0000 (09:28 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 12:28:09 +0000 (09:28 -0300)
manifests/borg.pp

index eff0f74b85d39773d9865cde7dda0f5c47c8aee1..a1d82e8c48172a58cb8d69c9d9921825406aa1a0 100644 (file)
@@ -30,6 +30,9 @@ define backup::borg(
     hour     => "0",
     minute   => "0",
     weekday  => "0",
-    ensure   => $periodic_check,
+    ensure   => $ensure ? {
+      'present' => $periodic_check,
+      default   => absent,
+    },
   }
 }