- From: Jeff Blaine <
>
- To:
- Subject: [chef] Physical vs. VMware guests in recipe
- Date: Thu, 21 Mar 2013 15:51:53 -0400
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...
- [chef] Physical vs. VMware guests in recipe, Jeff Blaine, 03/21/2013
Archive powered by MHonArc 2.6.16.