projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
they don't do mail relay for others any more
[mirror/dsa-puppet.git]
/
facts
/
architecture.rb
diff --git
a/facts/architecture.rb
b/facts/architecture.rb
index
d6187b2
..
894c82c
100644
(file)
--- a/
facts/architecture.rb
+++ b/
facts/architecture.rb
@@
-11,3
+11,9
@@
Facter.add(:architecture) do
end
end
+Facter.add(:debarchitecture) do
+ setcode do
+ %x{/usr/bin/dpkg --print-architecture}.chomp
+ end
+end
+