summaryrefslogtreecommitdiffstats
path: root/puppet-infracloud/modules/opnfv/manifests
diff options
context:
space:
mode:
authorYolanda Robla Mota <yroblamo@redhat.com>2016-10-06 15:09:47 +0200
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commit49ac5ed98af930303d0b89a513e3f4c4d42f2425 (patch)
treee8abf10767558b6f2e7556560700829adb840b77 /puppet-infracloud/modules/opnfv/manifests
parent785136216deab4d5136da2f89ee5dc186c0a32b9 (diff)
Add management of /root/.ssh key
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>
Diffstat (limited to 'puppet-infracloud/modules/opnfv/manifests')
-rw-r--r--puppet-infracloud/modules/opnfv/manifests/server.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet-infracloud/modules/opnfv/manifests/server.pp b/puppet-infracloud/modules/opnfv/manifests/server.pp
index 4113c50e..c4bff096 100644
--- a/puppet-infracloud/modules/opnfv/manifests/server.pp
+++ b/puppet-infracloud/modules/opnfv/manifests/server.pp
@@ -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'))
}