diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-04-13 19:17:34 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-04-13 19:17:34 -0300 |
commit | 52913f4f34f699f9c680b99cc61a9273e759608f (patch) | |
tree | acd5dca5dc9330530abc68d28f530e6630c2db6c /manifests | |
parent | a0f53b94ea9491734ea61f21f56ec5bba44be0c0 (diff) | |
download | puppet-backup-52913f4f34f699f9c680b99cc61a9273e759608f.tar.gz puppet-backup-52913f4f34f699f9c680b99cc61a9273e759608f.tar.bz2 |
Manage ssh private keys with ssh_local_key (3)
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index bfa4d45..a039ae4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -213,8 +213,8 @@ class backup( backupkeystore => "puppet:///pubkeys", } - if !defined(Ssh_local_key['backup']) { - ssh_local_key { 'backup': + if !defined(Ssh_local_key["$hostname"]) { + ssh_local_key { "$hostname": owner => root, group => root, home => '/root', @@ -254,8 +254,8 @@ class backup( testconnect => 'yes', } - if !defined(Ssh_local_key['backup']) { - ssh_local_key { 'backup': + if !defined(Ssh_local_key["$hostname"]) { + ssh_local_key { "$hostname": owner => root, group => root, home => '/root', |