Ensure /etc/nova exists before creating secret.xml

Without declaring a dependency, secret.xml can be
created before the folder is created through
the installation of the nova packages.

Closes-bug: #1458628
Change-Id: I0b9aec13866e4e334bcaf967192b2bc310ae20fb
This commit is contained in:
David Moreau Simard
2015-05-25 13:12:44 -04:00
parent d427bd2929
commit 7d1171986e

View File

@@ -74,7 +74,8 @@ class nova::compute::rbd (
} }
file { '/etc/nova/secret.xml': file { '/etc/nova/secret.xml':
content => template('nova/secret.xml-compute.erb') content => template('nova/secret.xml-compute.erb'),
require => Class['::nova']
} }
exec { 'get-or-set virsh secret': exec { 'get-or-set virsh secret':