Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2009 13:06
Show Gist options
  • Save anonymous/52807 to your computer and use it in GitHub Desktop.
Save anonymous/52807 to your computer and use it in GitHub Desktop.
node[:xen_vms].each do |name,vm|
execute "create-vm" do
command "xen-create-image --hostname #{name} --ip #{vm[:ip]} --size #{vm[:disk]} --memory #{vm[:memory]}"
creates "/etc/xen/#{name}.cfg"
end
link "/etc/xen/#{name}.cfg" do
target_file "/etc/xen/#{name}.cfg"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment