diff options
author | Micah Anderson <micah@riseup.net> | 2009-08-27 19:47:12 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-08-27 19:47:12 -0400 |
commit | 08d43f8c6d6a60f456cb82f2fb270f48470c96d7 (patch) | |
tree | a178e6a1adc2adaba86d9ed08ca007fad97a7aa1 /manifests/client.pp | |
parent | 8c72b1b43a428ccebb2b629ed60f06ff71650c17 (diff) | |
parent | 6734c256525e1dd42ba3648db82083bcabca66ed (diff) | |
download | puppet-backupninja-08d43f8c6d6a60f456cb82f2fb270f48470c96d7.tar.gz puppet-backupninja-08d43f8c6d6a60f456cb82f2fb270f48470c96d7.tar.bz2 |
Merge commit '6734c256525e1dd42ba3648db82083bcabca66ed'
Conflicts:
manifests/dup.pp
Diffstat (limited to 'manifests/client.pp')
-rw-r--r-- | manifests/client.pp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index ef449f5..c3d186d 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -72,14 +72,18 @@ class backupninja::client { case $install_key { true: { - file { "${backupninja::client::real_keydestination}": - ensure => directory, - mode => 0700, owner => $key_owner, group => $key_group, + if !defined(File["${backupninja::client::real_keydestination}"]) { + file { "${backupninja::client::real_keydestination}": + ensure => directory, + mode => 0700, owner => $key_owner, group => $key_group, + } } - file { "${backupninja::client::real_keydestination}/id_${key_type}": - source => "${key_store}/${real_user}_id_${key_type}", - mode => 0400, owner => $key_owner, group => $key_group, - require => File["${backupninja::client::real_keydestination}"], + if !defined(File["${backupninja::client::real_keydestination/id_${key_type}"]) { + file { "${backupninja::client::real_keydestination}/id_${key_type}": + source => "${key_store}/${real_user}_id_${key_type}", + mode => 0400, owner => $key_owner, group => $key_group, + require => File["${backupninja::client::real_keydestination}"], + } } } } |