Skip to content

Commit e007a70

Browse files
committed
(PUP-11593) Gentoo: Set systemd as default provider
Systemd is available on Gentoo since a long time (although Gentoo supports multiple init systems). This change marks the provider as default for Gentoo.
1 parent 03b3df3 commit e007a70

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)