Created
January 17, 2012 22:54
-
-
Save harlanbarnes/1629602 to your computer and use it in GitHub Desktop.
Vagrantfile
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
user = ENV['OPSCODE_USER'] || ENV['USER'] | |
base_box = ENV['VAGRANT_BOX'] || 'centos-5.5-x86_64' | |
Vagrant::Config.run do |config| | |
config.vm.box = base_box | |
config.ssh.timeout = 600 | |
config.vm.provision :chef_client do |chef| | |
chef.chef_server_url = "https://chef.imeetbeta.net" | |
chef.validation_key_path = "#{ENV['HOME']}/.chef/validation.pem" | |
chef.validation_client_name = "chef-validator" | |
# Change the node/client name for the Chef Server | |
chef.node_name = "dev-vagrant-#{user}" | |
# Put the client.rb in /etc/chef so chef-client can be run w/o specifying | |
chef.provisioning_path = "/etc/chef" | |
# logging | |
chef.log_level = :info | |
# adjust the run list to suit your testing needs | |
chef.run_list = [ | |
"role[vagrant]", | |
"role[base]" | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment