Skip to content

Instantly share code, notes, and snippets.

@bixu
Created September 10, 2010 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bixu/573973 to your computer and use it in GitHub Desktop.
Save bixu/573973 to your computer and use it in GitHub Desktop.
Vagrant::Config.run do |config|
# Choose our base box:
config.vm.box = "centos"
# Talk to our central Chef server:
config.chef.run_list.clear
config.chef.chef_server_url = "https://chef.domain.com"
config.chef.validation_key_path = "validation.pem"
config.vm.provisioner = :chef_server
config.chef.add_role("vagrant-unstable")
require 'etc'
user_name = Etc.getlogin
project_name = File.basename(File.expand_path("../", __FILE__))
config.chef.node_name = "project_name"+"."+"user_name"+"."+"box"+"."+"vagrant"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment