]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
add debarchitecture fact, since otherwise i386 on x86_64 kernel shows up wrong
authorStephen Gran <steve@lobefin.net>
Wed, 2 Dec 2009 19:50:43 +0000 (19:50 +0000)
committerStephen 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

index d6187b238ab4ca07ce8e8f558b8828c179aae807..f0d7ff57e38d0895e83bad8d33aa3fee4c549045 100644 (file)
@@ -11,3 +11,9 @@ Facter.add(:architecture) do
     end
 end
 
+Facter.add(:debarchitecture) do
+    setcode do
+        %x{/usr/bin/dpkg --print-architecture}
+    end
+end
+