Skip to content
This repository has been archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
build a private network for multi vm vagrant environments
Browse files Browse the repository at this point in the history
this will facilitate testing of clustered systems in a sandboxed environment
  • Loading branch information
ewdurbin committed Nov 22, 2013
1 parent ea707bd commit 67a7903
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data in `provisioning/salt/roots/pillar` is strictly for development environment

- Start some servers!
- pypi: `vagrant up pypi`
- navigate to http://localhost:8080/pypi and check it out!
- navigate to http://192.168.57.11/pypi and check it out!
- pypi-mirror: `vagrant up mirror`
- navigate to http://localhost:8081/simple and check it out!
- navigate to http://192.168.57.20/simple and check it out!

9 changes: 4 additions & 5 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ Vagrant.configure("2") do |config|
config.vm.synced_folder "provisioning/salt/roots/", "/srv/"

config.vm.define "pypi" do |pypi|
pypi.vm.network "forwarded_port", guest: 80, host: 8080
pypi.vm.network "forwarded_port", guest: 443, host: 8443
pypi.vm.network "forwarded_port", guest: 8000, host: 8081

pypi.vm.network "private_network", ip: "192.168.57.10"

pypi.vm.provision :salt do |s|
s.verbose = true
Expand All @@ -25,8 +24,8 @@ Vagrant.configure("2") do |config|
end

config.vm.define "mirror" do |mirror|
mirror.vm.network "forwarded_port", guest: 80, host: 8081
mirror.vm.network "forwarded_port", guest: 443, host: 8444

mirror.vm.network "private_network", ip: "192.168.57.20"

mirror.vm.provision :salt do |s|
s.verbose = true
Expand Down

0 comments on commit 67a7903

Please sign in to comment.