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
This commit is contained in:
Yolanda Robla Mota 2016-08-22 16:12:33 +02:00 committed by yolanda.robla
parent 6a6a455a1d
commit a227f9a210
1 changed files with 7 additions and 2 deletions

View File

@ -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