retire old DNS root key
[mirror/dsa-puppet.git] / modules / debian_org / lib / facter / system-hw.rb
1 Facter.add("systemproductname") do
2         confine :kernel => :linux
3         setcode do
4                 if FileTest.exist?("/usr/sbin/dmidecode")
5                         %x{/usr/sbin/dmidecode -s system-product-name}.chomp.strip
6                 else
7                         false
8                 end
9         end
10 end
11
12 Facter.add("hw_can_temp_sensors") do
13         confine :kernel => :linux
14         setcode do
15                 if FileTest.exist?("/sys/devices/virtual/thermal/thermal_zone0/temp")
16                         true
17                 else
18                         false
19                 end
20         end
21 end