Skip to content

Commit fa9786d

Browse files
authored
Update init.rb to support Nvidia's Cumulus Linux
Cumulus Linux uses systemd, not system-v's init. This fixes errors like: Failed to call refresh: Could not find init script for 'telegraf'
1 parent 700c826 commit fa9786d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/service/init.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def self.defpath
2121
end
2222

2323
# Debian and Ubuntu should use the Debian provider.
24-
confine :false => %w[Debian Ubuntu].include?(Puppet.runtime[:facter].value('os.name'))
24+
confine :false => %w[Debian Ubuntu Cumulus].include?(Puppet.runtime[:facter].value('os.name'))
2525
# RedHat systems should use the RedHat provider.
2626
confine :false => Puppet.runtime[:facter].value('os.family') == 'RedHat'
2727

0 commit comments

Comments
 (0)