From fa9786d124fa21c4fe1823a1889f15be4c42c17b Mon Sep 17 00:00:00 2001 From: dpkgbofh <67900136+dpkgbofh@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:13:04 +0200 Subject: [PATCH] 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' --- lib/puppet/provider/service/init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/service/init.rb b/lib/puppet/provider/service/init.rb index d7097f1b0da..4bce6898628 100644 --- a/lib/puppet/provider/service/init.rb +++ b/lib/puppet/provider/service/init.rb @@ -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'