Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created November 23, 2010 17:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jtimberman/712186 to your computer and use it in GitHub Desktop.
Save jtimberman/712186 to your computer and use it in GitHub Desktop.
opscode platform vagrantfile
# 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
# 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