From b0a1d04d7d1a67b13121f10b50088878e9157f5b Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 22 Nov 2025 06:07:36 +0100 Subject: [PATCH] Make route advertising configurable --- nodes/_defaults.yaml | 1 + patches/tailscale.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/nodes/_defaults.yaml b/nodes/_defaults.yaml index a0b3de8..1f70843 100644 --- a/nodes/_defaults.yaml +++ b/nodes/_defaults.yaml @@ -21,6 +21,7 @@ dns: ntp: nl.pool.ntp.org install: true autoInstall: false +advertiseRoutes: true patches: - !patch hostname - !patch install-disk diff --git a/patches/tailscale.yaml b/patches/tailscale.yaml index fbd6fb3..ebb9bac 100644 --- a/patches/tailscale.yaml +++ b/patches/tailscale.yaml @@ -4,4 +4,6 @@ name: tailscale environment: - TS_AUTHKEY={{ config.tailscale.authKey }} - TS_EXTRA_ARGS=--login-server {{ config.tailscale.loginServer }} --advertise-tags=tag:cluster-{{ node.cluster.name }} + {% if node.advertiseRoutes %} - TS_ROUTES={{ helper.tailscale_subnet(node.gateway, node.netmask) }} + {% endif %}