Skip to content

Instantly share code, notes, and snippets.

@manoot
Created November 10, 2010 18:29
Show Gist options
  • Save manoot/671273 to your computer and use it in GitHub Desktop.
Save manoot/671273 to your computer and use it in GitHub Desktop.
search(:node, 'run_list:recipe\[xenserver\:\:default\]') do |matching_node|
execute "xe vm-copy vm=CentOSBase new-name-label=#{node[:VMName]}" do
action :run
end
execute "xe vm-start vm=#{node[:VMName]}" do
action :run
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment