Skip to content

Commit 814d4e9

Browse files
committed
Update all Vagrant VM host-only private network IP ranges.
1 parent 441f8b1 commit 814d4e9

File tree

51 files changed

+102
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+102
-102
lines changed

deployments-balancer/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ This project builds a simple application architecture with a load balancer which
44

55
The infrastructure is fairly simple, with the following structure:
66

7-
-----------------------
8-
| HAProxy (192.168.4.2) |
9-
-----------------------
7+
------------------------
8+
| HAProxy (192.168.56.2) |
9+
------------------------
1010
|
1111
_______________________________
1212
| |
13-
---------------------- ----------------------
14-
| Apache (192.168.4.3) | | Apache (192.168.4.4) |
15-
---------------------- ----------------------
13+
----------------------- -----------------------
14+
| Apache (192.168.56.3) | | Apache (192.168.56.4) |
15+
----------------------- -----------------------
1616

1717
## Building the VMs
1818

@@ -22,7 +22,7 @@ The infrastructure is fairly simple, with the following structure:
2222
4. Run `ansible-galaxy install -r requirements.yml` in this directory to get the required Ansible roles.
2323
5. Run `vagrant up` to build the VMs and configure the infrastructure.
2424

25-
When Vagrant is finished provisioning the VMs with Ansible, you should be able to visit `http://192.168.4.2/`, and you'll see the default Ubuntu Apache 2 'installation complete' page (loaded from one of the two backend web servers through HAProxy).
25+
When Vagrant is finished provisioning the VMs with Ansible, you should be able to visit `http://192.168.56.2/`, and you'll see the default Ubuntu Apache 2 'installation complete' page (loaded from one of the two backend web servers through HAProxy).
2626

2727
## Performing a zero-downtime deployment
2828

deployments-balancer/Vagrantfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Vagrant.configure("2") do |config|
1515

1616
# Define three VMs with static private IP addresses.
1717
boxes = [
18-
{ :name => "bal1", :ip => "192.168.4.2" },
19-
{ :name => "app1", :ip => "192.168.4.3" },
20-
{ :name => "app2", :ip => "192.168.4.4" }
18+
{ :name => "bal1", :ip => "192.168.56.2" },
19+
{ :name => "app1", :ip => "192.168.56.3" },
20+
{ :name => "app2", :ip => "192.168.56.4" }
2121
]
2222

2323
# Provision each of the VMs.

deployments-balancer/inventory

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[balancer]
2-
192.168.4.2
2+
192.168.56.2
33

44
[app]
5-
192.168.4.3
6-
192.168.4.4
5+
192.168.56.3
6+
192.168.56.4
77

88
[deployments:children]
99
balancer

deployments-balancer/playbooks/provision.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222
vars:
2323
haproxy_backend_servers:
24-
- name: 192.168.4.3
25-
address: 192.168.4.3:80
26-
- name: 192.168.4.4
27-
address: 192.168.4.4:80
24+
- name: 192.168.56.3
25+
address: 192.168.56.3:80
26+
- name: 192.168.56.4
27+
address: 192.168.56.4:80
2828

2929
roles:
3030
- geerlingguy.haproxy

deployments-rolling/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project builds a [Node.js](https://nodejs.org/)-based API app inside a VM.
1313
Once the VM is built, you can test the API by running the following command (copy and paste verbatim, without the leading `$`), which requests the `/hello/:name` endpoint on each server:
1414

1515
$ for i in {2..5}; \
16-
do curl -w "\n" "http://192.168.3.$i:8080/hello/john"; \
16+
do curl -w "\n" "http://192.168.56.$i:8080/hello/john"; \
1717
done
1818

1919
If the above command outputs `"hello john"` on four lines, everything worked correctly!

deployments-rolling/Vagrantfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Vagrant.configure("2") do |config|
1515

1616
# Define four VMs with static private IP addresses.
1717
boxes = [
18-
{ :name => "nodejs1", :ip => "192.168.3.2" },
19-
{ :name => "nodejs2", :ip => "192.168.3.3" },
20-
{ :name => "nodejs3", :ip => "192.168.3.4" },
21-
{ :name => "nodejs4", :ip => "192.168.3.5" }
18+
{ :name => "nodejs1", :ip => "192.168.56.2" },
19+
{ :name => "nodejs2", :ip => "192.168.56.3" },
20+
{ :name => "nodejs3", :ip => "192.168.56.4" },
21+
{ :name => "nodejs4", :ip => "192.168.56.5" }
2222
]
2323

2424
# Provision each of the VMs.

deployments-rolling/inventory

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[nodejs-api]
2-
192.168.3.2
3-
192.168.3.3
4-
192.168.3.4
5-
192.168.3.5
2+
192.168.56.2
3+
192.168.56.3
4+
192.168.56.4
5+
192.168.56.5
66

77
[nodejs-api:vars]
88
ansible_user=vagrant

deployments/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project builds a [Ruby on Rails](http://rubyonrails.org/)-based app inside
1010
4. Run `ansible-galaxy install -r requirements.yml` in this directory to get the required Ansible roles.
1111
5. Run `vagrant up` to build the VM and deploy the version of the app specified in `playbooks/vars.yml`.
1212

13-
Once the VM is built, you can visit `http://192.168.33.7/` (or whatever domain name you point to that IP address in your local hosts file) to view the demo app.
13+
Once the VM is built, you can visit `http://192.168.56.7/` (or whatever domain name you point to that IP address in your local hosts file) to view the demo app.
1414

1515
## Deploying application updates
1616

deployments/Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Vagrant.configure(2) do |config|
1313
end
1414

1515
config.vm.hostname = "rails-demo"
16-
config.vm.network :private_network, ip: "192.168.33.7"
16+
config.vm.network :private_network, ip: "192.168.56.7"
1717

1818
config.vm.provision "ansible" do |ansible|
1919
ansible.playbook = "playbooks/main.yml"

deployments/playbooks/inventory-ansible

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[rails]
2-
192.168.33.7
2+
192.168.56.7
33

44
[rails:vars]
55
ansible_user=vagrant

0 commit comments

Comments
 (0)