Merge pull request #252 from bodepd/messagebus_libvirt
Adds service to enable message bus for redhat
This commit is contained in:
commit
ae830ccfbf
|
@ -15,6 +15,16 @@ class nova::compute::libvirt (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($::osfamily == 'RedHat') {
|
||||||
|
service { 'messagebus':
|
||||||
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
|
provider => $::nova::params::special_service_provider,
|
||||||
|
}
|
||||||
|
Package['libvirt'] -> Service['messagebus'] -> Service['libvirt']
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if $migration_support {
|
if $migration_support {
|
||||||
if $vncserver_listen != '0.0.0.0' {
|
if $vncserver_listen != '0.0.0.0' {
|
||||||
fail("For migration support to work, you MUST set vncserver_listen to '0.0.0.0'")
|
fail("For migration support to work, you MUST set vncserver_listen to '0.0.0.0'")
|
||||||
|
|
|
@ -95,6 +95,11 @@ describe 'nova::compute::libvirt' do
|
||||||
:require => 'Package[libvirt]',
|
:require => 'Package[libvirt]',
|
||||||
:before => 'Service[nova-compute]'
|
:before => 'Service[nova-compute]'
|
||||||
)}
|
)}
|
||||||
|
it { should contain_service('messagebus').with(
|
||||||
|
:ensure => 'running',
|
||||||
|
:enable => true,
|
||||||
|
:before => 'Service[libvirt]'
|
||||||
|
) }
|
||||||
|
|
||||||
it { should contain_nova_config('compute_driver').with_value('libvirt.LibvirtDriver')}
|
it { should contain_nova_config('compute_driver').with_value('libvirt.LibvirtDriver')}
|
||||||
it { should contain_nova_config('libvirt_type').with_value('kvm')}
|
it { should contain_nova_config('libvirt_type').with_value('kvm')}
|
||||||
|
|
Loading…
Reference in New Issue