Skip to content

Instantly share code, notes, and snippets.

@clintberry
Created March 30, 2012 20:54
Show Gist options
  • Save clintberry/2254914 to your computer and use it in GitHub Desktop.
Save clintberry/2254914 to your computer and use it in GitHub Desktop.
Vagrant Chef Attributes
config.vm.provision :chef_solo do |chef|
chef.json = {
:mysql => {
:server_root_password => 'blahblah'
},
:nodejs => {
:version => '0.6.14',
:dir => '/usr/local',
:npm => '1.1.13'
}
}
chef.cookbooks_path = "config/env/cookbooks"
chef.add_recipe "apt"
chef.add_recipe "mongodb::10gen_repo"
chef.add_recipe "mongodb"
chef.add_recipe "mysql::client"
chef.add_recipe "mysql::server"
chef.add_recipe "nodejs"
chef.add_recipe "nodejs::npm"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment