3333N/APatch for FACT-660 Facter on Solaris 11.2+ should report if zones are supported
3333N/AUpstream bug: https://tickets.puppetlabs.com/browse/FACT-660
3333N/A--- facter-2.1.0/lib/facter/util/solaris_zones.rb.orig 2014-08-19 13:49:14.721574641 -0600
3333N/A+++ facter-2.1.0/lib/facter/util/solaris_zones.rb 2014-08-19 13:50:03.475818042 -0600
3333N/A@@ -156,3 +156,29 @@
3333N/A end
3333N/A end
3333N/A end
3333N/A+
3333N/A+Facter.add("kernel_zone") do
3333N/A+ confine :operatingsystem => :Solaris
3333N/A+ setcode do
3333N/A+ virtinfo = %x{/sbin/virtinfo list -H -o class kernel-zone 2>/dev/null}
3333N/A+ case virtinfo.chomp!
3333N/A+ when "supported", "current", "parent"
3333N/A+ virtinfo
3333N/A+ else
3333N/A+ "unsupported"
3333N/A+ end
3333N/A+ end
3333N/A+end
3333N/A+
3333N/A+Facter.add("non_global_zone") do
3333N/A+ confine :operatingsystem => :Solaris
3333N/A+ setcode do
3333N/A+ virtinfo = %x{/sbin/virtinfo list -H -o class non-global-zone 2>/dev/null}
3333N/A+ case virtinfo.chomp!
3333N/A+ when "supported", "current"
3333N/A+ virtinfo
3333N/A+ else
3333N/A+ "unsupported"
3333N/A+ end
3333N/A+ end
3333N/A+end