From: Silvio Rhatto Date: Sun, 13 Apr 2014 22:17:34 +0000 (-0300) Subject: Manage ssh private keys with ssh_local_key (3) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=52913f4f34f699f9c680b99cc61a9273e759608f;p=puppet-backup.git Manage ssh private keys with ssh_local_key (3) --- 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',