sshkeys depend on /root/.ssh
authorvarac <varacanero@zeromail.org>
Sat, 14 Sep 2013 09:10:47 +0000 (11:10 +0200)
committervarac <varacanero@zeromail.org>
Sat, 14 Sep 2013 09:10:47 +0000 (11:10 +0200)
manifests/generate_sshkey.pp

index c5e6042..a3008e5 100644 (file)
@@ -9,6 +9,13 @@ define backupninja::generate_sshkey(
   $public_type = $public[0]
   $public_key = $public[1]
 
+  file { '/root/.ssh':
+    ensure => directory,
+    owner  => 'root',
+    group  => 'root',
+    mode   => '0600';
+  }
+
   # install ssh keypair on client
   file { "/root/.ssh/$ssh_key_name":
     content => $ssh_keys[0],