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