Skip to content

Commit

Permalink
Merge pull request #8919 from bastelfreak/gentoo
Browse files Browse the repository at this point in the history
(PUP-11593) Gentoo: Fix systemd service provider
  • Loading branch information
joshcooper committed Nov 21, 2023
2 parents bfc08f9 + e007a70 commit 79853b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/puppet/provider/service/systemd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
defaultfor 'os.family' => :redhat, 'os.name' => :fedora
defaultfor 'os.family' => :suse
defaultfor 'os.family' => :coreos
defaultfor 'os.family' => :gentoo
defaultfor 'os.name' => :amazon, 'os.release.major' => ["2", "2023"]
defaultfor 'os.name' => :debian
notdefaultfor 'os.name' => :debian, 'os.release.major' => ["5", "6", "7"] # These are using the "debian" method
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/provider/service/systemd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Puppet::Util::Execution::ProcessOutput.new('', 0)
end

osfamilies = [ 'archlinux', 'coreos' ]
osfamilies = [ 'archlinux', 'coreos', 'gentoo' ]

osfamilies.each do |osfamily|
it "should be the default provider on #{osfamily}" do
Expand Down

0 comments on commit 79853b8

Please sign in to comment.