diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 90508d0..de743b4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -28,14 +28,18 @@ class backup( include backup::params - # TODO: backupninja classes should be parametrized - $backupdir = $backup::params::backupdir - $backupdir_ensure = $backup::params::backupdir_ensure - $backupninja_ensure_version = $backup::params::backupninja_ensure_version + class { 'backupninja': + loglvl => 4, + usecolors => false, + when => $when, + reportwarning => $reportwarning, + ensure_backupninja_version => $backup::params::backupninja_ensure_version, + } - include backupninja::server - include backupninja::client::duplicity - include backupninja::client::rdiff_backup + class { 'backupninja::server': + backupdir => $backup::params::backupdir, + backupdir_ensure => $backup::params::backupdir_ensure, + } package { "debconf-utils": ensure => installed, } package { "hwinfo": ensure => installed, } @@ -48,13 +52,6 @@ class backup( }, } - backupninja::config { "conf": - loglvl => 4, - usecolors => false, - when => $when, - reportwarning => $reportwarning, - } - file { "${backup::params::backupdir_remote}": ensure => directory, owner => root, |