blob: 9cd236ef4db1613c9a33ed61af2a56465a947088 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
---
install:
vm:
memory: 1G
numcpus: 1
autostart: True
disks:
primary: /dev/sda
scsi:
sda:
type: zfs
name: root
size: 5g
interfaces:
- bridge: br-public
name: primary0
network:
nameservers: "{{ vm_host.network.dns }}"
domain: "{{ host_domain }}"
systemd_link:
interfaces: "{{ install.interfaces }}"
primary: &_network_primary_
name: primary0
address: "{{ vm_host.network.bridges.public.prefix | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) }}"
gateway: "{{ vm_host.network.bridges.public.prefix | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[vm_host.name]) | ansible.utils.ipaddr('address') }}"
template: overlay
overlay: "{{ (vm_host.network.bridges.public.overlays.default.prefix | ansible.utils.ipaddr(vm_host.network.bridges.public.overlays.default.offsets[inventory_hostname])).split('/')[0] }}"
interfaces:
- *_network_primary_
external_ip: "{{ network.primary.overlay }}"
wireguard_keys:
elemedia:
pub: "1GdTR5ehIcSVvwdWWsKitRjzcm1gY3Z9ASzJAuN7VH0="
priv: "{{ vault_wireguard_priv_keys.elemedia }}"
emc:
pub: "xgBLLDTRrVxUG0BEr0gNQ6ofkXSRDQR7OXilxCCwtxs="
priv: "{{ vault_wireguard_priv_keys.emc }}"
wireguard_gateway_tunnels:
wg-elemedia:
description: Elevate Media Server (media.elev8.at)
priv_key: "{{ wireguard_keys.elemedia.priv }}"
addresses:
- 192.168.254.1/30
ip_snat:
interface: "{{ network.primary.name }}"
to: "{{ network.primary.overlay }}"
port_forwardings:
- dest: "{{ network.primary.overlay }}"
tcp_ports:
80: 192.168.254.2:80
443: 192.168.254.2:443
322: 192.168.254.2:222
peers:
- pub_key: "{{ hostvars['ele-media'].wireguard_keys.gwhetzner.pub }}"
allowed_ips:
- 192.168.254.2/32
# wg-emc:
# description: Elevate Media Channel
# priv_key: "{{ wireguard_keys.emc.priv }}"
# listen_port: 51821
# addresses:
# - 192.168.254.5/30
# ip_snat:
# interface: "{{ network.primary.name }}"
# to: "{{ network.primary.overlay }}"
# port_forwardings:
# - dest: "{{ network.primary.overlay }}"
# tcp_ports:
# 422: 192.168.254.6:222
# peers:
# - pub_key: "{{ hostvars['ele-router'].wireguard_keys.gwhetzner.pub }}"
# allowed_ips:
# - 192.168.254.6/32
# - 192.168.20.0/24
wireguard_p2p_interface:
name: wg-thetys
description: external management interface for thetys
priv_key: "{{ vault_wireguard_p2p_interface.priv_key }}"
listen_port: 51920
addresses:
- 192.168.123.1/30
wireguard_p2p_peers:
- pub_key: "RDNeaG06AUkEZqEr/v3zTidroGfTBTsXluOx2ArITyE="
allowed_ips:
- 192.168.123.2/32
|