python-support-infra/inventory.yml

66 lines
1.7 KiB
YAML

####################
# - Hosts - by Purpose
####################
service:
hosts:
raspberry.node.timesigned.com:
vars:
ansible_user: root
storage:
hosts:
blueberry.node.timesigned.com:
vars:
ansible_user: root
####################
# - Hosts - by Swarm Role
####################
leader:
## ONLY ==1 Host can be Leader
hosts:
raspberry.node.timesigned.com:
vars:
ansible_user: root
manager:
hosts:
raspberry.node.timesigned.com:
vars:
ansible_user: root
worker:
hosts:
blueberry.node.timesigned.com:
vars:
ansible_user: root
swarm:
hosts:
raspberry.node.timesigned.com:
blueberry.node.timesigned.com:
vars:
ansible_user: root
####################
# - Hosts - by L3 Network
####################
wg0:
hosts:
raspberry.node.timesigned.com:
wg0_ip: "10.9.8.1"
wg_private_key: "{{ lookup('community.general.passwordstore', 'work/dtu/python-support/wg/raspberry_private_key') }}"
wg_public_key: "{{ lookup('community.general.passwordstore', 'work/dtu/python-support/wg/raspberry_public_key') }}"
wg_psk_blueberry.node.timesigned.com: "{{ lookup('community.general.passwordstore', 'work/dtu/python-support/wg/psk_raspberry-blueberry') }}"
blueberry.node.timesigned.com:
wg0_ip: "10.9.8.2"
wg_private_key: "{{ lookup('community.general.passwordstore', 'work/dtu/python-support/wg/blueberry_private_key') }}"
wg_public_key: "{{ lookup('community.general.passwordstore', 'work/dtu/python-support/wg/blueberry_public_key') }}"
wg_psk_raspberry.node.timesigned.com: "{{ lookup('community.general.passwordstore', 'work/dtu/python-support/wg/psk_raspberry-blueberry') }}"
vars:
ansible_user: root