Created
January 31, 2012 16:13
-
-
Save scottsbaldwin/1711374 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
Vagrant::Config.run do |config| | |
config.vm.define :lb do | lb_config| | |
lb_config.vm.box = "lb" | |
#lb_config.vm.forward_port "http", 80, 8080 | |
lb_config.vm.forward_port "haproxy", 22002, 22002 | |
lb_config.vm.network "192.168.2.11" | |
lb_config.vm.provision :chef_client do |chef| | |
chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME" | |
chef.validation_key_path = "ORGNAME-validator.pem" | |
chef.node_name = "lb" | |
chef.add_role "lb" | |
#chef.add_recipe "foo" | |
#chef.environment = "foo" | |
end | |
end | |
config.vm.define :web1 do | web_config| | |
web_config.vm.box = "web1" | |
#web_config.vm.forward_port "http", 80, 8080 | |
web_config.vm.network "192.168.2.12" | |
web_config.vm.provision :chef_client do |chef| | |
chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME" | |
chef.validation_key_path = "ORGNAME-validator.pem" | |
chef.add_role "webserver" | |
#chef.add_recipe "foo" | |
#chef.environment = "foo" | |
end | |
end | |
config.vm.define :web2 do | web_config| | |
web_config.vm.box = "web2" | |
web_config.vm.forward_port "http", 80, 8080 | |
web_config.vm.network "192.168.2.13" | |
web_config.vm.provision :chef_client do |chef| | |
chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME" | |
chef.validation_client_name = "web2" | |
chef.node_name = "web2" | |
chef.validation_key_path = "ORGNAME-validator.pem" | |
chef.add_role "production" | |
chef.add_role "base" | |
chef.add_role "monitoring" | |
#chef.add_recipe "foo" | |
#chef.environment = "foo" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment