Make route advertising configurable

This commit is contained in:
2025-11-22 06:07:36 +01:00
parent 7d5b09c623
commit b0a1d04d7d
2 changed files with 3 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ dns:
ntp: nl.pool.ntp.org
install: true
autoInstall: false
advertiseRoutes: true
patches:
- !patch hostname
- !patch install-disk

View File

@@ -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 %}