refactor(repo): update dependency and abstract variables

This commit is contained in:
il
2026-06-25 16:56:11 +09:00
parent a2334bb236
commit a49cdcb9d1
10 changed files with 36 additions and 32 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ define PORTS_WEB = { 80, 443 }
define PORTS_DHCP = { 67, 68, 546, 547 }
define PORTS_DNS = 53
define PORTS_NTP = 123
define PORTS_VPN = 11290
define PORTS_VPN = {{ services['wireguard']['ports']['udp'] }}
define PORTS_CROWDSEC = {{ services['crowdsec']['ports']['https'] }}
table inet nat {
+1 -1
View File
@@ -2,7 +2,7 @@
Name=wg0
Kind=wireguard
[WireGuard]
ListenPort=11290
ListenPort={{ services['wireguard']['ports']['udp'] }}
PrivateKey={{ hostvars['console']['wireguard']['server']['private_key'] }}
[WireGuardPeer]
PublicKey={{ hostvars['console']['wireguard']['console']['public_key'] }}