]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Manage ssh private keys with ssh_local_key (3)
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 13 Apr 2014 22:17:34 +0000 (19:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 13 Apr 2014 22:17:34 +0000 (19:17 -0300)
manifests/init.pp

index bfa4d450bf7d78d836e6a28dfefaa3c84d608e30..a039ae491dde8c56275f55cfa358529de1257338 100644 (file)
@@ -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',