inventory: add chess, monitoring, media, fractale; drop leaderboard
This commit is contained in:
parent
01d54e704b
commit
54303eb268
3 changed files with 47 additions and 10 deletions
|
|
@ -27,8 +27,8 @@ then `env/bin/ansible-galaxy collection install -r requirements.yml -p .ansible/
|
|||
| Group | What | Connects as |
|
||||
|---|---|---|
|
||||
| `hypervisors` | Proxmox host `10.0.0.1` | root |
|
||||
| `lxc` | 100–106, 108–110, 250 | root (110 through `pct exec` on the host) |
|
||||
| `vm` | 107 pelican-panel + the `k3s` VMs | root, k3s nodes as `un-oeil` + sudo |
|
||||
| `lxc` | 100–106, 108–114 | root (110 through `pct exec` on the host) |
|
||||
| `vm` | 107 pterodactyl-panel + the `k3s` VMs | root, k3s nodes as `un-oeil` + sudo |
|
||||
| `k3s` | `k3s_masters` 131–133, `k3s_workers` 141–143 | `un-oeil` + sudo |
|
||||
| `external` | `viarezo`, the ViaRézo VM `10.10.10.3` | root |
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
# external machines outside the Proxmox host (ViaRézo cloud VM)
|
||||
# Groups by role: k3s (k3s_masters, k3s_workers), all of them VMs.
|
||||
# proxmox_vmid matches `pct list` / `qm list`. IPs: 1NN -> 10.0.0.(NN+10),
|
||||
# except k3s (VMID = last octet) and 110/250 (.250/.251).
|
||||
# except k3s (VMID = last octet) and 110 (.250).
|
||||
all:
|
||||
children:
|
||||
hypervisors:
|
||||
|
|
@ -59,16 +59,28 @@ all:
|
|||
ansible_host: 10.0.0.1
|
||||
description: WireGuard hub, tunnel 10.10.10.0/24
|
||||
proxmox_vmid: 110
|
||||
leaderboard:
|
||||
ansible_host: 10.0.0.251
|
||||
description: Leaderboard (Docker)
|
||||
proxmox_vmid: 250
|
||||
chess:
|
||||
ansible_host: 10.0.0.21
|
||||
description: Chess, chess.un-oeil.fr
|
||||
proxmox_vmid: 111
|
||||
monitoring:
|
||||
ansible_host: 10.0.0.22
|
||||
description: Prometheus + Grafana (grafana.un-oeil.fr)
|
||||
proxmox_vmid: 112
|
||||
media:
|
||||
ansible_host: 10.0.0.23
|
||||
description: Sonarr, Radarr, Prowlarr, Bazarr, qBittorrent via Gluetun (Docker), media on /hdd-mirror/media
|
||||
proxmox_vmid: 113
|
||||
fractale:
|
||||
ansible_host: 10.0.0.24
|
||||
description: MandelRust Mandelbrot server, fractale.un-oeil.fr
|
||||
proxmox_vmid: 114
|
||||
|
||||
vm:
|
||||
hosts:
|
||||
pelican-panel:
|
||||
pterodactyl-panel:
|
||||
ansible_host: 10.0.0.17
|
||||
description: Pelican Panel + local Wings
|
||||
description: Pterodactyl Panel + local Wings
|
||||
proxmox_vmid: 107
|
||||
children:
|
||||
k3s:
|
||||
|
|
@ -109,4 +121,4 @@ all:
|
|||
hosts:
|
||||
viarezo:
|
||||
ansible_host: 10.10.10.3 # through the WireGuard tunnel
|
||||
description: "ViaRézo cloud VM: Wings (viarezo node), Overleaf"
|
||||
description: "ViaRézo cloud VM: Wings (viarezo node), Overleaf, mailcow, Authentik"
|
||||
|
|
|
|||
|
|
@ -461,6 +461,31 @@
|
|||
line: -A PREROUTING -i vmbr0 -p udp -m udp --dport 443 -j DNAT --to-destination 10.0.0.250:51820
|
||||
insertafter: ^-A PREROUTING -i vmbr0 -p udp -m udp --dport 51820 -j DNAT
|
||||
|
||||
- name: WireGuard hub
|
||||
hosts: wireguard
|
||||
gather_facts: false
|
||||
tags: [wireguard]
|
||||
tasks:
|
||||
# The hub routes 10.10.10.0/24 to 10.0.0.0/24. Forwarding had only been
|
||||
# switched on by hand, so after the 2026-10-14 reboot the tunnel came up but
|
||||
# no traffic reached the LAN. systemd-sysctl applies this file at boot (the
|
||||
# LXC has no sysctl binary, hence the /proc write for the live value).
|
||||
- name: Enable IP forwarding at boot
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/sysctl.d/99-wireguard-forward.conf
|
||||
content: "net.ipv4.ip_forward = 1\n"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Enable IP forwarding now
|
||||
ansible.builtin.shell: |
|
||||
if [ "$(cat /proc/sys/net/ipv4/ip_forward)" != 1 ]; then
|
||||
echo 1 > /proc/sys/net/ipv4/ip_forward && echo changed
|
||||
fi
|
||||
register: utils_wg_forward
|
||||
changed_when: "'changed' in utils_wg_forward.stdout"
|
||||
|
||||
- name: Docker hosts
|
||||
hosts: all:!hypervisors:!k3s
|
||||
gather_facts: false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue