aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/client.pp31
1 files changed, 16 insertions, 15 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index fb0c934..d7167a5 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -33,22 +33,23 @@ class backupninja::client {
file { $configdir:
ensure => directory
}
- define key (
- $sourcekey='$real_keystore/${name}_id_$real_keytype',
+ define key
+ ( $sourcekey='$real_keystore/${name}_id_$real_keytype',
$destination='$real_keydestination', $key_type=$real_keytype,
- $key_owner=$real_keyowner, $key_group=$real_keygroup, $installkey=$real_keymanage
- )
- case $installkey {
- true: {
- {
- file { "$destination":
- ensure => directory,
- mode => 700, owner => $keyowner, group => $keygroup,
- }
- file { "$destination/id_$keytype":
- source => "$sourcekey",
- mode => 0400, owner => $keyowner, group => $keygroup,
- require => File["$destination"],
+ $key_owner=$real_keyowner, $key_group=$real_keygroup, $installkey=$real_keymanage )
+ {
+ case $installkey {
+ true: {
+ {
+ file { "$destination":
+ ensure => directory,
+ mode => 700, owner => $keyowner, group => $keygroup,
+ }
+ file { "$destination/id_$keytype":
+ source => "$sourcekey",
+ mode => 0400, owner => $keyowner, group => $keygroup,
+ require => File["$destination"],
+ }
}
}
}