Manage the messagebus service on non-RHEL RHEL-like platforms

Previously, the test for enabling the "messagebus" service checked
for "$operatingsystem == RedHat", which only matches on RHEL;
$operatingsystem is "CentOS" on CentOS machines. I think we want
"$osfamily" here, which is "RedHat" on CentOS machines.

I also added a test for "$operatingsystem != Fedora" to preserve
the existing behavior on those machines, which as far as I can
tell do not require this service.

Change-Id: I020591006df87a9766cefbe36740940915924180
This commit is contained in:
Adam Compton
2013-06-11 16:20:53 -07:00
parent a7c0720bfa
commit 352e2caeed

View File

@@ -16,7 +16,7 @@ class nova::compute::libvirt (
}
}
if($::operatingsystem == 'RedHat') {
if($::osfamily == 'RedHat' and $::operatingsystem != 'Fedora') {
service { 'messagebus':
ensure => running,
enable => true,