Swap in redhat as special service provider

This commit will swap the special service provider variable from undef
  to redhat for EL7 platforms.

  This needs to be done to work around an issue[1] where the systemd
  service provider on Puppet 4 doesn't understand services started as a
  dependencies, also know as "static" as enabled.  This results in the
  service "dbus" being enabled on every run.  Using the deprecated
  legacy "service" command solves th issue.

  [1] https://tickets.puppetlabs.com/browse/PUP-5353

Change-Id: I54b1bb85869f2749079288df9fae76db00f43038
This commit is contained in:
Cody Herriges 2016-03-17 15:25:47 -07:00
parent 40a62aba41
commit 92b5c90fdb
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ class nova::params {
$special_service_provider = 'init'
} else {
$messagebus_service_name = 'dbus'
$special_service_provider = undef
$special_service_provider = 'redhat'
}
}
default: {

View File

@ -206,11 +206,11 @@ describe 'nova::compute::libvirt' do
end
it { is_expected.to contain_service('libvirt').with(
:provider => nil
:provider => 'redhat'
)}
it { is_expected.to contain_service('messagebus').with(
:provider => nil,
:provider => 'redhat',
:name => 'dbus'
)}
end