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
272c7d5726
commit
d9f056eb67
@ -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'],
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user