ansible/host_vars/hindley/main.yml

55 lines
1.7 KiB
YAML
Raw Normal View History

2021-04-22 21:44:40 +02:00
---
2022-07-21 18:27:55 +02:00
ansible_host: "hindley.adh.auro.re"
## Users
users:
2022-07-21 21:02:19 +02:00
histausse: sudo
g33kex: sudo
thomyrock: sudo
dorian: sudo
2022-07-21 18:27:55 +02:00
## Networking
interfaces:
enp2s0:
ipv4: 45.66.110.3
type: dhcp
wg0:
ipv4: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}"
netmaskv4: "{{ intranet.netmaskv4 }}"
type: wireguard
ipv4_forwarding: true
ipv6_forwarding: false
lan_address: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}"
## VPN
2021-04-22 21:44:40 +02:00
vpn_interfaces:
wg0:
ip: "{{ interfaces.wg0.ipv4 }}"
2022-07-21 18:27:55 +02:00
private_key: "{{ vpn_key }}"
2021-04-22 22:12:57 +02:00
public_key: "Ce48/ZdvpI2S82bIivhiWHQsyidzTAtxCnEYojY3xEA="
2021-04-22 21:44:40 +02:00
keepalive: false
peers:
2022-07-21 18:51:45 +02:00
- public_key: "jvjOCj5xVTLwyQ8o7QsYvF2ep1HbD/GKnmjpqJuztB8="
allowed_ips:
2022-05-22 20:26:16 +02:00
- "{{ intranet.subnets.physical.subnets.router_hellman.ipv4 }}/{{ intranet.subnets.physical.subnets.router_hellman.netmaskv4 }}"
- "{{ intranet.subnets.guest_hellman.ipv4 }}/{{ intranet.subnets.guest_hellman.netmaskv4 }}"
2022-05-22 20:26:16 +02:00
comment: "Router hosted on Hellman"
2022-07-21 18:51:45 +02:00
- public_key: "{{ vpn_guest_keys.knuth }}"
allowed_ips:
- "{{ intranet.subnets.guest.subnets.knuth.ipv4 }}/{{ intranet.subnets.guest.subnets.knuth.netmaskv4 }}"
2021-04-23 09:16:33 +02:00
comment: "Client laptop: knuth"
2022-07-21 18:51:45 +02:00
- public_key: "{{ hostvars['sulfur'].vpn_interfaces.wg0.public_key }}"
2021-08-07 01:06:30 +02:00
allowed_ips:
2022-07-21 18:51:45 +02:00
- "{{ hostvars['sulfur'].vpn_interfaces.wg0.ip }}/32"
2021-08-07 01:06:30 +02:00
comment: "matrix VM, hosted on g33kex's server"
2022-07-21 19:05:12 +02:00
- public_key: "{{ hostvars['technetium'].vpn_interfaces.wg0.public_key }}"
2022-07-21 18:51:45 +02:00
allowed_ips:
- "{{ hostvars['technetium'].vpn_interfaces.wg0.ip }}/32"
comment: "test VM"
2021-08-07 01:06:30 +02:00
2022-07-21 18:27:55 +02:00
# apt proxy
proxy_apt_interfaces:
- "{{ interfaces['wg0'].ipv4 }}"