Skip to content

Instantly share code, notes, and snippets.

@gmcinnes
Created August 9, 2012 04:06
Show Gist options
  • Select an option

  • Save gmcinnes/3300860 to your computer and use it in GitHub Desktop.

Select an option

Save gmcinnes/3300860 to your computer and use it in GitHub Desktop.
Sample vagrantfile
Vagrant::Config.run do |config|
config.vm.define :chef_server do |chef_server_config|
chef_server_config.vm.box = "a"
chef_server_config.vm.network :hostonly, "192.168.17.2"
chef_server_config.vm.host_name = "host0"
chef_server_config.vm.provision :shell do |shell|
shell.path = "provision_chef_server.sh"
end
end
config.vm.define :brains do |brains_config|
brains_config.vm.box = "a"
brains_config.vm.network :hostonly, "192.168.17.3"
brains_config.vm.host_name = "host1"
brains_config.vm.provision :chef_client do |chef|
chef.chef_server_url = "http://192.168.17.2:4000"
chef.validation_key_path = "./pems/validation.pem"
chef.add_role("baseline")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment