diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-04-17 15:19:59 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-04-17 17:12:16 -0400 |
commit | 8d97365688f59a8990fa549d0a0cc227d1187e76 (patch) | |
tree | 6305d85d28fdcdf8ec47858e0fa540b1636c6cec /manifests | |
parent | d18c3e038a1018a86b6cd94b7076cd8bc7163271 (diff) | |
download | puppet-backupninja-8d97365688f59a8990fa549d0a0cc227d1187e76.tar.gz puppet-backupninja-8d97365688f59a8990fa549d0a0cc227d1187e76.tar.bz2 |
Merge backupninja:config class into base client class
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 9faba5d..17f83df 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -13,6 +13,21 @@ class backupninja ( $keyowner = 0, $keygroup = 0, $keymanage = true, + $configfile = '/etc/backupninja.conf', + $loglvl = 4, + $when = 'everyday at 01:00', + $reportemail = 'root', + $reportsuccess = false, + $reportwarning = true, + $reporthost = undef, + $reportuser = undef, + $reportdirectory = undef, + $logfile = '/var/log/backupninja.log', + $configdir = '/etc/backup.d', + $scriptdir = '/usr/share/backupninja', + $libdir = '/usr/lib/backupninja', + $usecolors = true, + $vservers = false ) { # install client dependencies @@ -65,4 +80,11 @@ class backupninja ( } } + file { $configfile: + content => template('backupninja/backupninja.conf.erb'), + owner => root, + group => 0, + mode => '0644' + } + } |