Skip to content

Instantly share code, notes, and snippets.

@chef
Created January 20, 2009 05:32
Show Gist options
  • Save chef/49349 to your computer and use it in GitHub Desktop.
Save chef/49349 to your computer and use it in GitHub Desktop.
#
# Attribute file/per-node hash
xen_vms = Mash.new
xen_vms[:my_vm] = {
:ip => '10.8.2.204',
:disk => '5Gb',
:memory => '2048Mb'
}
##
# Recipe
##
node[:xen_vms].each do |vm|
... all your stuff, vm[:ip], vm[:disk], vm[:memory]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment