projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cff44a2
)
add debarchitecture fact, since otherwise i386 on x86_64 kernel shows up wrong
author
Stephen Gran
<steve@lobefin.net>
Wed, 2 Dec 2009 19:50:43 +0000
(19:50 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Wed, 2 Dec 2009 19:50:43 +0000
(19:50 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/architecture.rb
patch
|
blob
|
history
diff --git
a/facts/architecture.rb
b/facts/architecture.rb
index
d6187b2
..
f0d7ff5
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}
+ end
+end
+