From: Stephen Gran Date: Wed, 2 Dec 2009 19:50:43 +0000 (+0000) Subject: add debarchitecture fact, since otherwise i386 on x86_64 kernel shows up wrong X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e07079a93fc3cab73795e9a0e88f9bcd64cfeff9;p=mirror%2Fdsa-puppet.git add debarchitecture fact, since otherwise i386 on x86_64 kernel shows up wrong Signed-off-by: Stephen Gran --- diff --git a/facts/architecture.rb b/facts/architecture.rb index d6187b238..f0d7ff57e 100644 --- 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 +