Issue #2003 has been reported by ian.
----------------------------------------
Bug #2003: virtual fact
http://projects.reductivelabs.com:80/issues/2003
Author: ian
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
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
-~----------~----~----~----~------~----~------~--~---