puppet-standalone-mashup/shared/lib/facter/osfamily.rb
2012-06-04 15:05:38 -04:00

15 lines
259 B
Ruby

Facter.add("osfamily") do
setcode do
distid = Facter.value('lsbdistid') || Facter.value('operatingsystem')
case distid
when /RedHat|CentOS|Fedora/
"redhat"
when "ubuntu"
"debian"
else
distid.downcase
end
end
end