diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-03-19 17:05:32 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-04-17 17:11:20 -0400 |
commit | 058ebe28086cd53f6fe86b794d6b658c95124ed7 (patch) | |
tree | 19764370d0699961401f8becc1379f0e17434c7f /manifests/cron.pp | |
parent | 74ce68bcf6f1fbf938e4a161f7c6305f67378b7d (diff) | |
download | puppet-backupninja-058ebe28086cd53f6fe86b794d6b658c95124ed7.tar.gz puppet-backupninja-058ebe28086cd53f6fe86b794d6b658c95124ed7.tar.bz2 |
fix autoload, first attempt
Diffstat (limited to 'manifests/cron.pp')
-rw-r--r-- | manifests/cron.pp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/cron.pp b/manifests/cron.pp new file mode 100644 index 0000000..bd4e857 --- /dev/null +++ b/manifests/cron.pp @@ -0,0 +1,17 @@ +# Write the backupninja cron job, allowing you to specify an alternate backupninja +# command (if you want to wrap it in any other commands, e.g. to allow it to use +# the monkeysphere for authentication), or a different schedule to run it on. +define backupninja::cron( + $backupninja_cmd = '/usr/sbin/backupninja', + $backupninja_test_cmd = $backupninja_cmd, + $cronfile = "/etc/cron.d/backupninja", + $min = "0", $hour = "*", $dom = "*", $month = "*", + $dow = "*") +{ + file { $cronfile: + content => template('backupninja/backupninja.cron.erb'), + owner => root, + group => root, + mode => 0644 + } +} |