Files
puppet-sabayon/lib/facter/operatingsystem.rb
Alexander "Ace" Olofsson c46c360eb0 Update operatingsystem.rb
Use additional confines instead of checks in setcode to detect the distribution ID
2016-10-31 09:31:41 +01:00

12 lines
251 B
Ruby

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, lsbdistid: :sabayon
setcode do
'Sabayon'
end
end