Skip to content

Instantly share code, notes, and snippets.

@mattias-lidman
Created August 24, 2011 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattias-lidman/1167985 to your computer and use it in GitHub Desktop.
Save mattias-lidman/1167985 to your computer and use it in GitHub Desktop.
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "lucid32"
config.vm.forward_port("web", 80, 4567)
config.vm.forward_port("ssl", 443, 4569)
config.vm.forward_port("tomcat", 8080, 4568)
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "./cookbooks"
chef.roles_path = "./roles"
chef.data_bags_path = "./databags"
# ensure the latest packages
chef.add_recipe("apt")
chef.add_role("production")
chef.add_role("java_app2")
chef.add_recipe("go_shibboleth_idp")
chef.json.merge!({
:java => {
:install_flavor => "sun"
},
:mysql => {
:bind_address => "127.0.0.1"
}
})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment