-
-
Save schisamo/713985 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Before running vagrant, export the shell variable for the organization on the platform and make sure | |
# the validator certificate is in ~/.chef. | |
# | |
# export ORGNAME=your_platform_organization | |
Vagrant::Config.run do |config| | |
config.vm.box = "lucid64" | |
config.vm.provisioner = :chef_server | |
# Set up some organization specific values based on environment variable above. | |
config.chef.chef_server_url = "https://api.opscode.com/organizations/#{ENV['ORGNAME']}" | |
config.chef.validation_key_path = "#{ENV['HOME']}/.chef/#{ENV['ORGNAME']}-validator.pem" | |
config.chef.validation_client_name = "#{ENV['ORGNAME']}-validator" | |
# Change the node/client name for the Chef Server | |
config.chef.node_name = "#{ENV['USER']}-vagrant" | |
# Put the client.rb in /etc/chef so chef-client can be run w/o specifying | |
config.chef.provisioning_path = "/etc/chef" | |
# adjust the run list to suit your testing needs | |
config.chef.run_list = [ | |
"role[base]", | |
"role[dev]", | |
"role[webserver]" | |
] | |
end |
This file contains hidden or 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
# Use the following run_list to do the rails quick start: | |
# http://help.opscode.com/faqs/otherhelp/rails-quick-start | |
config.chef.run_list = [ | |
"role[production]", | |
"role[base]", | |
'role[radiant_database_master]', | |
'role[radiant]', | |
'role[radiant_run_migrations]', | |
'recipe[radiant::db_bootstrap]' | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment