[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 3a39dd8353b6308cf49522990104cc63e55d7cda
James Turnbull
james at lovedthanlost.net
Fri Jan 29 17:22:11 UTC 2010
The following commit has been merged in the upstream branch:
commit 9722e1fdb2ceee08e1cbd4098cb2673980469d06
Author: James Turnbull <james at lovedthanlost.net>
Date: Sun Mar 1 08:53:28 2009 +1100
Fixed #2003 - Added is_virtual fact
diff --git a/CHANGELOG b/CHANGELOG
index 9532c8c..502d09a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
1.6.x:
+ Fixed #2003 - Added is_virtual fact
+
Fixed #2035 - Missing brace for OSX preflight
Added EC2 facts
diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
index fdb340f..ce790c3 100644
--- a/lib/facter/virtual.rb
+++ b/lib/facter/virtual.rb
@@ -73,3 +73,16 @@ Facter.add("virtual") do
result
end
end
+
+Facter.add("is_virtual") do
+ confine :kernel => %w{Linux FreeBSD OpenBSD SunOS}
+
+ setcode do
+ case Facter.value(:virtual)
+ when "xenu", "openvzve", "vmware"
+ true
+ else
+ false
+ end
+ end
+end
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list