projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
modules/debian-org/lib/facter/system-hw.rb
@@ -0,0
+1,6
@@
+Facter.add("system-product-name") do
+ confine :kernel => :linux
+ setcode do
+ %x{dmidecode -s system-product-name}.chomp
+ end
+end