aboutsummaryrefslogtreecommitdiff
path: root/manifests/config.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-11-20 03:14:55 +0000
committerMicah Anderson <micah@riseup.net>2007-11-20 03:14:55 +0000
commit794856bfff4f93066570f06280170609794e157a (patch)
tree47443fdbd76cf220711cfb4c2c1457b865e25598 /manifests/config.pp
downloadpuppet-backupninja-794856bfff4f93066570f06280170609794e157a.tar.gz
puppet-backupninja-794856bfff4f93066570f06280170609794e157a.tar.bz2
add backupninja module
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp22
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
+ }
+}