We're not about to differentiate physical nodes from VMs as role
definitions, so my logic has gone into a recipe that runs everywhere,
but does nothing on physical hosts.
Is the following a sane way to do that? It's working, but
that doesn't mean it's the ideal method.
# recipes/default.rb
return if node['virtualization'].nil?
return if node['virtualization']['system'] != 'vmware'
return if node['virtualization']['role'] != 'guest'
# actual code here for VMs that are guests...
Archive powered by MHonArc 2.6.16.