From a227f9a210ed645e5993fa19beded747108151b1 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Mota Date: Mon, 22 Aug 2016 16:12:33 +0200 Subject: [PATCH] Add management of /etc/nova/ssl/private directory If not present, key cannot be updated successfully. This is not done by infracloud::ssl_key module, because we are using a custom path. Change-Id: I85522619623ae2dec7fb813359d060e403279ae5 --- manifests/compute.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/manifests/compute.pp b/manifests/compute.pp index 5139484..0f1c513 100644 --- a/manifests/compute.pp +++ b/manifests/compute.pp @@ -75,11 +75,16 @@ class infracloud::compute( key_file => "/etc/nova/ssl/private/${controller_public_address}.pem", } + file { '/etc/nova/ssl/private': + ensure => directory, + owner => 'root', + mode => '0755', + } + infracloud::ssl_key { 'nova': key_path => "/etc/nova/ssl/private/${controller_public_address}.pem", key_content => $ssl_key_file_contents, - notify => Service['nova-compute'], - require => Class['::nova'], + require => [ Class['::nova'], File['/etc/nova/ssl/private'] ] } # nova-compute service