aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-07-09 12:23:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-07-09 12:23:27 -0300
commit21807b94b188db016af05a2f072ec54775074a54 (patch)
tree02430af6a460036a5819fc7f073418ffea9eb3e2
parentaaeb63b986bf53bddfefd3887c8065c5d8acf109 (diff)
downloadpuppet-backup-21807b94b188db016af05a2f072ec54775074a54.tar.gz
puppet-backup-21807b94b188db016af05a2f072ec54775074a54.tar.bz2
Introducing $backup_when
-rw-r--r--manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index ac27844..d8fb436 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -41,9 +41,14 @@ class backup {
package { "debconf-utils": ensure => installed, }
package { "hwinfo": ensure => installed, }
+ case $backup_when {
+ '': { $backup_when = 'everyday at 01:00' }
+ }
+
backupninja::config { "conf":
- loglvl => 4,
+ loglvl => 4,
usecolors => false,
+ when => $backup_when,
}
# TODO: temporary resource to be removed in the long run