diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-08-28 17:54:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-08-28 17:54:25 -0300 |
commit | 5fe3a1b401fbac378a8ed802518da5fb2420f17e (patch) | |
tree | 625b7ca61439667e4e1a50a630a34950b9690551 | |
parent | b432d94fa72162aa9635217b703ad100b9d39fa2 (diff) | |
download | puppet-backupninja-5fe3a1b401fbac378a8ed802518da5fb2420f17e.tar.gz puppet-backupninja-5fe3a1b401fbac378a8ed802518da5fb2420f17e.tar.bz2 |
Trying a different way to test definitions at backupninja::client::key
-rw-r--r-- | manifests/client.pp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index f8c5e23..869e75b 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -75,15 +75,18 @@ class backupninja::client inherits backupninja::client::defaults { default => $keytype, } + $key_dest = "${backupninja::client::defaults::real_keydestination}" + $key_dest_file = "$key_dest/id_$key_type" + case $install_key { true: { - if !defined(File["${backupninja::client::defaults::real_keydestination}"]) { + if !defined(File["$key_dest"]) { file { "${backupninja::client::defaults::real_keydestination}": ensure => directory, mode => 0700, owner => $key_owner, group => $key_group, } } - if !defined(File["${backupninja::client::defaults::real_keydestination/id_${key_type}"]) { + if !defined(File["$key_dest_file"]) { file { "${backupninja::client::defaults::real_keydestination}/id_${key_type}": source => "${key_store}/${real_user}_id_${key_type}", mode => 0400, owner => $key_owner, group => $key_group, |