Skip to content

Commit

Permalink
Update init.rb to support Nvidia's Cumulus Linux
Browse files Browse the repository at this point in the history
Cumulus Linux uses systemd, not system-v's init.
This fixes errors like:

Failed to call refresh: Could not find init script for 'telegraf'
  • Loading branch information
dpkgbofh authored Aug 21, 2024
1 parent 700c826 commit fa9786d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/service/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.defpath
end

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

Expand Down

0 comments on commit fa9786d

Please sign in to comment.