aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-13 00:24:44 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-13 00:24:44 -0200
commit4e494cf0eff237ad8638c20d8438ee83d1a0bab8 (patch)
treeeb1bd7446fd0a9fc76f809451adcf0e72a21c8b8 /manifests
parent84cad808de2c281abc64150f2f16ddb5148775a5 (diff)
downloadpuppet-backup-4e494cf0eff237ad8638c20d8438ee83d1a0bab8.tar.gz
puppet-backup-4e494cf0eff237ad8638c20d8438ee83d1a0bab8.tar.bz2
Introducing $periodic_check and minor fix
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 1dd8470..ef079b0 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -70,6 +70,7 @@ class backup {
$ensure = present,
$full_if_older_than = "1M",
$remove_older_than = "45D",
+ $periodic_check = present,
$directory = "/var/backups/duplicity") {
case $encryptkey { false: { err("need to define a key!") } }
@@ -96,12 +97,12 @@ class backup {
# check backups once a week
cron { "duplicity_check--$title.$domain":
- command => "${backupninja::client::defaults::configdir}/${order}_duplicity-${title}.sh --check"
+ command => "/bin/bash ${backupninja::client::defaults::configdir}/${order}_duplicity-${title}.sh --check"
user => root,
hour => "0",
minute => "0",
weekday => "0",
- ensure => present,
+ ensure => $periodic_check,
}
}
}