This repository has been archived on 2023-05-19. You can view files and clone it, but cannot push or open issues or pull requests.
skylab-ansible/inventory.yaml
Ethan Paul 8ac7e0f5a3
Add hostfile management to server role
Add aliases for direct connections of the cluster servers
2021-11-09 00:26:28 -05:00

138 lines
3.5 KiB
YAML

---
all:
vars:
skylab_state_dir: /var/lib/skylab
skylab_ansible_venv: "{{ skylab_state_dir }}/ansible-runtime"
skylab_pip_version: 19.3.1
ansible_user: ansible
ansible_ssh_common_args: "-o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes"
en1:
vars:
skylab_location: Newton MA
# gross hack for now, will be refactored later
_skylab_adguard_nat_rule: 8
hosts:
core:
ansible_host: 10.42.101.1
ansible_port: 4242
ansible_network_os: edgeos
skylab_description: EN1 Core Router
iridium:
ansible_host: 10.42.101.200
skylab_description: Local Monitor Node
skylab_targets: [network]
children:
cluster:
vars:
skylab_targets: [cluster, datastore]
skylab_roles:
- server
- docker-swarm
- datastore
skylab_direct_peers:
- hostname: pegasus.local
address: 192.168.42.10
- hostname: saturn.local
address: 192.168.42.20
- hostname: orion.local
address: 192.168.42.30
hosts:
pegasus: # jupiter
ansible_host: 10.42.101.100
skylab_hostname: pegasus.skylab.enp.one
skylab_description: Arbiter Node
skylab_cluster:
address: 10.42.101.10/24
interface: bond0
skylab_networking:
eno1:
bond: bond0
eno2:
bond: bond0
bond0:
type: bond
gateway: 10.42.101.1/24
dns:
- 10.42.101.1
addresses:
- 10.42.101.100/24
- 192.168.255.255/32
dhcp: false
bond0.99:
type: vlan
addresses:
- 192.168.42.10/24
dhcp: false
saturn: # remus
ansible_host: 10.42.101.110
skylab_hostname: saturn.skylab.enp.one
skylab_description: Operational Node
skylab_cluster:
address: 10.42.101.11/24
interface: bond0
skylab_networking:
eno1:
bond: bond0
eno2:
bond: bond0
bond0:
type: bond
dhcp: false
gateway: 10.42.101.1/24
addresses:
- 10.42.101.110/24
- 192.168.255.255/32
dns:
- 10.42.101.1
bond0.99:
type: vlan
dhcp: false
addresses:
- 192.168.42.20/24
orion: # romulus
ansible_host: 10.42.101.120
skylab_hostname: orion.skylab.enp.one
skylab_description: Operational Node
skylab_cluster:
address: 10.42.101.12/24
interface: bond0
skylab_networking:
eno1:
bond: bond0
eno2:
bond: bond0
bond0:
type: bond
gateway: 10.42.101.1/24
dns:
- 10.42.101.1
addresses:
- 10.42.101.120/24
- 192.168.255.255/32
dhcp: false
bond0.99:
type: vlan
addresses:
- 192.168.42.30/24
dhcp: false
en2:
vars:
skylab_location: DigitalOcean TOR1
hosts:
hubble:
ansible_host: en2a.enp.one
skylab_hostname: hubble.en2.enp.one
skylab_description: Cloud Web Server
skylab_targets: [cloud]
skylab_roles: [server]