We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1145d44 + d231c60 commit d5a4b2aCopy full SHA for d5a4b2a
lib/puppet/provider/service/init.rb
@@ -19,12 +19,9 @@ def self.defpath
19
end
20
21
# Debian and Ubuntu should use the Debian provider.
22
+ confine :false => ['Debian', 'Ubuntu'].include?(Puppet.runtime[:facter].value('operatingsystem'))
23
# RedHat systems should use the RedHat provider.
- confine :true => begin
24
- os = Puppet.runtime[:facter].value(:operatingsystem).downcase
25
- family = Puppet.runtime[:facter].value(:osfamily).downcase
26
- !(os == 'debian' || os == 'ubuntu' || family == 'redhat')
27
- end
+ confine :false => Puppet.runtime[:facter].value('osfamily') == 'RedHat'
28
29
# We can't confine this here, because the init path can be overridden.
30
#confine :exists => defpath
0 commit comments