From 52913f4f34f699f9c680b99cc61a9273e759608f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 13 Apr 2014 19:17:34 -0300 Subject: Manage ssh private keys with ssh_local_key (3) --- manifests/init.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manifests') 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', -- cgit v1.2.3