Created
May 8, 2014 10:02
-
-
Save kerin/400858daf60dca6deea7 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
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. | |
| # Every Vagrant virtual environment requires a box to build off of. | |
| config.vm.box = "precise64" | |
| config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
| config.vm.define "db" do |db| | |
| db.vm.box = "db" | |
| db.vm.network "private_network", ip: "172.16.0.3" | |
| db.vm.synced_folder "cla_backend/", "/vagrant" | |
| db.vm.synced_folder "cla-deploy/", "/srv" | |
| db.vm.provision :salt do |salt| | |
| salt.minion_config = "minion" | |
| salt.run_highstate = true | |
| salt.verbose = true | |
| end | |
| end | |
| config.vm.define "backend" do |backend| | |
| backend.vm.box = "backend" | |
| backend.vm.network "private_network", ip: "172.16.0.1" | |
| backend.vm.synced_folder "cla_backend/", "/vagrant" | |
| backend.vm.synced_folder "cla-deploy/", "/srv" | |
| backend.vm.provision :salt do |salt| | |
| salt.minion_config = "minion" | |
| salt.run_highstate = true | |
| salt.verbose = true | |
| end | |
| end | |
| config.vm.define "frontend" do |frontend| | |
| frontend.vm.box = "frontend" | |
| frontend.vm.network "private_network", ip: "172.16.0.2" | |
| frontend.vm.synced_folder "cla_frontend/", "/vagrant" | |
| frontend.vm.synced_folder "cla-deploy/", "/srv" | |
| frontend.vm.provision :salt do |salt| | |
| salt.minion_config = "minion" | |
| salt.run_highstate = true | |
| salt.verbose = true | |
| end | |
| end | |
| config.vm.define "public" do |pub| | |
| pub.vm.box = "public" | |
| pub.vm.network "private_network", ip: "172.16.0.3" | |
| pub.vm.synced_folder "cla_public/", "/vagrant" | |
| pub.vm.synced_folder "cla-deploy/", "/srv" | |
| pub.vm.provision :salt do |salt| | |
| salt.minion_config = "minion" | |
| salt.run_highstate = true | |
| salt.verbose = true | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment