diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-08-28 17:17:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-08-28 17:17:25 -0300 |
commit | b432d94fa72162aa9635217b703ad100b9d39fa2 (patch) | |
tree | 238a150b9968c52c3b17aab62cbc5e615b80f94e /manifests/rdiff.pp | |
parent | f96267fe354a9df417afdc09899c58edf3e67d24 (diff) | |
download | puppet-backupninja-b432d94fa72162aa9635217b703ad100b9d39fa2.tar.gz puppet-backupninja-b432d94fa72162aa9635217b703ad100b9d39fa2.tar.bz2 |
New backupninja::client::defaults to avoid duplicates.
Adding part of client.pp code into new class
backupninja::client::defaults in an attempt to avoid duplicate
definitions inside backupninja::client::key.
Diffstat (limited to 'manifests/rdiff.pp')
-rw-r--r-- | manifests/rdiff.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index 904c68f..9f81d8f 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -27,7 +27,7 @@ define backupninja::rdiff( $ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $backuptag = false, $home = false, $backupkeytype = "rsa") { - include backupninja::client + include backupninja::client::defaults case $directory { false: { err("need to define a directory for where the backups should go!") } } @@ -55,13 +55,13 @@ define backupninja::rdiff( } } } - file { "${backupninja::client::configdir}/${order}_${name}.rdiff": + file { "${backupninja::client::defaults::configdir}/${order}_${name}.rdiff": ensure => $ensure, content => template('backupninja/rdiff.conf.erb'), owner => root, group => root, mode => 0600, - require => File["${backupninja::client::configdir}"] + require => File["${backupninja::client::defaults::configdir}"] } } |