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:
parent
3d36307bcb
commit
e6812a3fa1
|
@ -33,6 +33,7 @@ class tripleo::profile::base::nova::libvirt (
|
|||
file { ['/etc/libvirt/qemu/networks/autostart/default.xml',
|
||||
'/etc/libvirt/qemu/networks/default.xml']:
|
||||
ensure => absent,
|
||||
require => Package['libvirt'],
|
||||
before => Service['libvirt'],
|
||||
}
|
||||
|
||||
|
@ -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'],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue