Skip to content

Commit 79853b8

Browse files
authored
Merge pull request #8919 from bastelfreak/gentoo
(PUP-11593) Gentoo: Fix systemd service provider
2 parents bfc08f9 + e007a70 commit 79853b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/puppet/provider/service/systemd.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
defaultfor 'os.family' => :redhat, 'os.name' => :fedora
2020
defaultfor 'os.family' => :suse
2121
defaultfor 'os.family' => :coreos
22+
defaultfor 'os.family' => :gentoo
2223
defaultfor 'os.name' => :amazon, 'os.release.major' => ["2", "2023"]
2324
defaultfor 'os.name' => :debian
2425
notdefaultfor 'os.name' => :debian, 'os.release.major' => ["5", "6", "7"] # These are using the "debian" method

spec/unit/provider/service/systemd_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Puppet::Util::Execution::ProcessOutput.new('', 0)
1919
end
2020

21-
osfamilies = [ 'archlinux', 'coreos' ]
21+
osfamilies = [ 'archlinux', 'coreos', 'gentoo' ]
2222

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

0 commit comments

Comments
 (0)