diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-12-13 00:24:44 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-12-13 00:24:44 -0200 |
commit | 4e494cf0eff237ad8638c20d8438ee83d1a0bab8 (patch) | |
tree | eb1bd7446fd0a9fc76f809451adcf0e72a21c8b8 /manifests | |
parent | 84cad808de2c281abc64150f2f16ddb5148775a5 (diff) | |
download | puppet-backup-4e494cf0eff237ad8638c20d8438ee83d1a0bab8.tar.gz puppet-backup-4e494cf0eff237ad8638c20d8438ee83d1a0bab8.tar.bz2 |
Introducing $periodic_check and minor fix
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 5 |
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, } } } |