Skip to content

Instantly share code, notes, and snippets.

@jasherai
Created November 13, 2014 21:00
Show Gist options
  • Save jasherai/38b393aff809b3c42129 to your computer and use it in GitHub Desktop.
Save jasherai/38b393aff809b3c42129 to your computer and use it in GitHub Desktop.
require 'chef/provisioning'
# with_chef_server Chef::Config[:chef_server_url], {
with_chef_server "https://api.opscode.com/organizations/XXXX", {
:client_name => Chef::Config[:node_name],
:signing_key_filename => Chef::Config[:client_key]
}
machine 'provisioner' do
recipe 'chef-metal::docker'
converge true
end
require 'chef/provisioning/vagrant_driver'
with_driver 'vagrant'
vagrant_box 'trusty64' do
url 'https://vagrantcloud.com/chef/boxes/ubuntu-14.04/versions/1/providers/virtualbox.box'
end
with_machine_options :vagrant_options => {
'vm.box' => 'trusty64'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment