Make route advertising configurable
This commit is contained in:
@@ -21,6 +21,7 @@ dns:
|
|||||||
ntp: nl.pool.ntp.org
|
ntp: nl.pool.ntp.org
|
||||||
install: true
|
install: true
|
||||||
autoInstall: false
|
autoInstall: false
|
||||||
|
advertiseRoutes: true
|
||||||
patches:
|
patches:
|
||||||
- !patch hostname
|
- !patch hostname
|
||||||
- !patch install-disk
|
- !patch install-disk
|
||||||
|
|||||||
@@ -4,4 +4,6 @@ name: tailscale
|
|||||||
environment:
|
environment:
|
||||||
- TS_AUTHKEY={{ config.tailscale.authKey }}
|
- TS_AUTHKEY={{ config.tailscale.authKey }}
|
||||||
- TS_EXTRA_ARGS=--login-server {{ config.tailscale.loginServer }} --advertise-tags=tag:cluster-{{ node.cluster.name }}
|
- 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) }}
|
- TS_ROUTES={{ helper.tailscale_subnet(node.gateway, node.netmask) }}
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user