diff options
Diffstat (limited to 'manifests/config.pp')
-rw-r--r-- | manifests/config.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp new file mode 100644 index 0000000..7cf5b1a --- /dev/null +++ b/manifests/config.pp @@ -0,0 +1,22 @@ +# Write a "main" configuration file for backupninja. Effectively, it does +# little more than just take the config options you specify in the define and +# write them to the config file as-is. +# +define backupninja::config($configfile = '/etc/backupninja.conf', + $loglvl = 4, + $when = '01:00', + $reportemail = 'root', + $reportsuccess = false, + $reportwarning = true, + $logfile = '/var/log/backupninja.log', + $configdir = '/etc/backup.d', + $scriptdir = '/usr/share/backupninja', + $usecolors = true + ) { + file { $configfile: + content => template('backupninja/backupninja.conf.erb'), + owner => root, + group => root, + mode => 0644 + } +} |