Skip to content

Commit df7a4b7

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 d3caef9 commit df7a4b7

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
@@ -18,6 +18,7 @@
1818
defaultfor :osfamily => :redhat, :operatingsystem => :fedora
1919
defaultfor :osfamily => :suse
2020
defaultfor :osfamily => :coreos
21+
defaultfor :osfamily => :gentoo
2122
defaultfor :operatingsystem => :amazon, :operatingsystemmajrelease => ["2", "2023"]
2223
defaultfor :operatingsystem => :debian
2324
notdefaultfor :operatingsystem => :debian, :operatingsystemmajrelease => ["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)