Issue #2003 has been updated by jamtur01. Target version changed from 1.6.0 to 1.5.5
---------------------------------------- Bug #2003: virtual fact http://projects.reductivelabs.com/issues/2003 Author: ian Status: Closed Priority: Normal Assigned to: jamtur01 Category: library Target version: 1.5.5 Complexity: Unknown Keywords: Many times, when I'm writing puppet manifests, I simply want to know whether a machine is virtual or not. Right now, I seem to have to base this on the 'virtual' fact which is complex. For example, to determine if a machine is physical or virtualized, I must have a case for either physical,xen0,openvzhn,vserver_host,vmware-server or the inverse xenu,openvzve,vserver,vmware. I propose that we add an additional fact, something like is_virtual which is simply true/false. <pre> Facter.add("virtual?") do confine :kernel => %w(Linux) setcode do case Facter.value(:virtual) when "xenu", "openvzve", "vmware" true else nil end end end </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
