Merge pull request #252 from bodepd/messagebus_libvirt

Adds service to enable message bus for redhat
This commit is contained in:
Dan Bode 2013-03-20 22:19:52 -07:00
commit ae830ccfbf
2 changed files with 15 additions and 0 deletions

View File

@ -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 $vncserver_listen != '0.0.0.0' {
fail("For migration support to work, you MUST set vncserver_listen to '0.0.0.0'")

View File

@ -95,6 +95,11 @@ describe 'nova::compute::libvirt' do
:require => 'Package[libvirt]',
: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('libvirt_type').with_value('kvm')}