Override the operatingsystem fact definition for sabayon
This commit is contained in:
14
lib/facter/operatingsystem.rb
Normal file
14
lib/facter/operatingsystem.rb
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Facter.add(:operatingsystem) do
|
||||||
|
# Sabayon Linux is a variant of Gentoo so this resolution needs to come
|
||||||
|
# before the Gentoo resolution.
|
||||||
|
has_weight(100)
|
||||||
|
confine :kernel => :linux
|
||||||
|
|
||||||
|
setcode do
|
||||||
|
distid = Facter.value(:lsbdistid)
|
||||||
|
if distid == "Sabayon"
|
||||||
|
'Sabayon'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Reference in New Issue
Block a user