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:
parent
6a6a455a1d
commit
a227f9a210
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user