Created
September 10, 2010 16:43
-
-
Save bixu/573973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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