require 'chef/provisioning/ssh_driver'
with_driver 'ssh'
with_machine_options :transport_options => {
'ip_address' => '192.168.33.122', # ip of the vagrant machine to be provisioned.
'username' => 'vagrant', # username of the vagrant box
'ssh_options' => {
'password' => 'vagrant' # password
}
}
require 'chef/provisioning'
machine 'meh' do
converge true
recipe 'starter'
end
$ Vagrant up
$ berks vendor cookbooks && chef-client -z ssh.rb blah.rb
OR
$ bundle exec berks vendor cookbooks && chef-client -z ssh.rb blah.rb