Simplify the default for the sabayon systemd service handler
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
# init.rb
|
||||
# Determine the init system in use on Sabayon/Gentoo systems
|
||||
|
||||
|
||||
Facter.add("init") do
|
||||
setcode do
|
||||
init = %x{/usr/bin/stat -c '%N' /sbin/init | /usr/bin/awk '{print $3}'}.chomp
|
||||
if /systemd/.match(init)
|
||||
'systemd'
|
||||
else
|
||||
'sysvinit'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
Puppet::Type.type(:service).provide :sabayon, :parent => :systemd do
|
||||
desc "Manages `systemd` services using `systemctl`."
|
||||
|
||||
defaultfor :operatingsystem => [:sabayon]
|
||||
defaultfor :osfamily => :gentoo, :init => [:systemd]
|
||||
defaultfor :operatingsystem => :sabayon
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user