Skip to content

Instantly share code, notes, and snippets.

@double-z
Created April 1, 2015 00:14
Show Gist options
  • Save double-z/5df85758aa2ab2222145 to your computer and use it in GitHub Desktop.
Save double-z/5df85758aa2ab2222145 to your computer and use it in GitHub Desktop.
require 'chef/provisioning'
chef_gem 'chef-provisioning-vagrant'
count = ['one', 'two']
count.each do |nc|
machine "vweb-#{nc}" do
action [:ready, :setup, :converge]
driver 'vagrant'
machine_options :vagrant_options => {
'vm.box' => 'opscode-ubuntu-12.04'
}
converge true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment