Improved ghetto-terraform

This commit is contained in:
2021-11-11 01:43:28 +01:00
parent 02b1abc371
commit f4bdf8809e
6 changed files with 428 additions and 89 deletions

View File

@ -1,70 +1,70 @@
# ip addresses could be acquired from the vms after they're created
cloud-1:
vars:
magic_router_ip: 192.168.100.10
magic_router_ip: 192.168.110.10
magic_routes:
- 192.168.101.0/24
- 192.168.102.0/24
- 192.168.103.0/24
- 192.168.111.0/24
- 192.168.112.0/24
- 192.168.113.0/24
ansible_become: true
ansible_user: ubuntu
hosts:
cloud-cluster-1-master-1:
ansible_host: 192.168.100.131
ansible_host: 192.168.110.100
cloud-cluster-1-worker-1:
ansible_host: 192.168.100.239
ansible_host: 192.168.110.101
cloud-cluster-1-worker-2:
ansible_host: 192.168.100.247
ansible_host: 192.168.110.102
edge-1:
vars:
magic_router_ip: 192.168.101.10
magic_router_ip: 192.168.111.10
magic_routes:
- 192.168.100.0/24
- 192.168.102.0/24
- 192.168.103.0/24
- 192.168.110.0/24
- 192.168.112.0/24
- 192.168.113.0/24
ansible_become: true
ansible_user: ubuntu
hosts:
edge-cluster-1-master-1:
ansible_host: 192.168.101.254
ansible_host: 192.168.111.100
edge-cluster-1-worker-1:
ansible_host: 192.168.101.197
ansible_host: 192.168.111.101
edge-cluster-1-worker-2:
ansible_host: 192.168.101.234
ansible_host: 192.168.111.102
edge-2:
become: true
user: ubuntu
vars:
magic_router_ip: 192.168.102.10
magic_router_ip: 192.168.112.10
magic_routes:
- 192.168.100.0/24
- 192.168.101.0/24
- 192.168.103.0/24
- 192.168.110.0/24
- 192.168.111.0/24
- 192.168.113.0/24
ansible_become: true
ansible_user: ubuntu
hosts:
edge-cluster-2-master-1:
ansible_host: 192.168.102.226
ansible_host: 192.168.112.100
edge-cluster-2-worker-1:
ansible_host: 192.168.102.180
ansible_host: 192.168.112.101
edge-cluster-2-worker-2:
ansible_host: 192.168.102.238
ansible_host: 192.168.112.102
site-1:
vars:
magic_router_ip: 192.168.103.10
magic_router_ip: 192.168.113.10
magic_routes:
- 192.168.100.0/24
- 192.168.101.0/24
- 192.168.102.0/24
- 192.168.110.0/24
- 192.168.111.0/24
- 192.168.112.0/24
ansible_become: true
ansible_user: ubuntu
hosts:
site-emulator-1:
ansible_host: 192.168.103.169
ansible_host: 192.168.113.100
all:
children: