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 commitfa750232d6
) (cherry picked from commite6812a3fa1
)
This commit is contained in:
parent
3dee90603f
commit
e124996a26
@ -33,6 +33,7 @@ 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,
|
||||||
|
require => Package['libvirt'],
|
||||||
before => Service['libvirt'],
|
before => Service['libvirt'],
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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
Block a user