Add management of /root/.ssh key
authorYolanda Robla Mota <yroblamo@redhat.com>
Thu, 6 Oct 2016 13:09:47 +0000 (15:09 +0200)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 11 Aug 2017 19:56:12 +0000 (12:56 -0700)
It is generally needed to have this file created,
for next manifests to run properly.

Change-Id: I3ca1dd05a44ecdd6bee9abcfd6ba7fa875022ed4
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
puppet-infracloud/modules/opnfv/manifests/server.pp

index 4113c50..c4bff09 100644 (file)
@@ -216,6 +216,14 @@ class opnfv::server (
     require  => Class['pip'],
   }
 
+  # manage root ssh
+  if ! defined(File['/root/.ssh']) {
+    file { '/root/.ssh':
+      ensure => directory,
+      mode   => '0700',
+    }
+  }
+
   # add hosts entries
   create_resources('host', hiera_hash('hosts'))
 }