Fix libvirt exec deps for split-stack

Need to ensure libvirt is installed before the execs that depend on it.

Related bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1500527

Change-Id: I7ba62bb3e3a2e43bc57ed33f9b320c698b2c6ad5
Closes-bug: 1723221
(cherry picked from commit fa750232d6)
This commit is contained in:
Oliver Walsh 2017-10-12 19:41:56 +01:00
parent 3d36307bcb
commit e6812a3fa1
1 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,9 @@ class tripleo::profile::base::nova::libvirt (
file { ['/etc/libvirt/qemu/networks/autostart/default.xml',
'/etc/libvirt/qemu/networks/default.xml']:
ensure => absent,
before => Service['libvirt'],
ensure => absent,
require => Package['libvirt'],
before => Service['libvirt'],
}
# in case libvirt has been already running before the Puppet run, make
@ -41,6 +42,7 @@ class tripleo::profile::base::nova::libvirt (
exec { 'libvirt-default-net-destroy':
command => '/usr/bin/virsh net-destroy default',
onlyif => '/usr/bin/virsh net-info default | /bin/grep -i "^active:\s*yes"',
require => Package['libvirt'],
before => Service['libvirt'],
}
}