From 49ac5ed98af930303d0b89a513e3f4c4d42f2425 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Mota Date: Thu, 6 Oct 2016 15:09:47 +0200 Subject: 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 --- puppet-infracloud/modules/opnfv/manifests/server.pp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'puppet-infracloud/modules/opnfv') 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')) } -- cgit 1.2.3-korg