We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 682d101 + 283d1bf commit 7ca202bCopy full SHA for 7ca202b
lib/puppet/provider/service/init.rb
@@ -20,12 +20,9 @@ def self.defpath
20
end
21
22
# Debian and Ubuntu should use the Debian provider.
23
+ confine :false => ['Debian', 'Ubuntu'].include?(Puppet.runtime[:facter].value('os.name'))
24
# RedHat systems should use the RedHat provider.
- confine :true => begin
25
- os = Puppet.runtime[:facter].value('os.name').downcase
26
- family = Puppet.runtime[:facter].value('os.family').downcase
27
- !(os == 'debian' || os == 'ubuntu' || family == 'redhat')
28
- end
+ confine :false => Puppet.runtime[:facter].value('os.family') == 'RedHat'
29
30
# We can't confine this here, because the init path can be overridden.
31
#confine :exists => defpath
0 commit comments