Skip to content

Instantly share code, notes, and snippets.

@dlchet
Forked from bixu/gist:573973
Created September 10, 2010 20:41
Show Gist options
  • Save dlchet/574331 to your computer and use it in GitHub Desktop.
Save dlchet/574331 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}.#{config.vm.box}.vagrant"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment