system-hw facter
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / system-hw.rb
diff --git a/modules/debian-org/lib/facter/system-hw.rb b/modules/debian-org/lib/facter/system-hw.rb
new file mode 100644 (file)
index 0000000..1a154f6
--- /dev/null
@@ -0,0 +1,6 @@
+Facter.add("system-product-name") do
+       confine :kernel => :linux
+       setcode do
+               %x{dmidecode -s system-product-name}.chomp
+       end
+end