Skip to content

Permanent changes due to tailscale status returning only one line

The exec resource is being run in every Puppet run if there is only the current node registered with Tailscale.

# tailscale version
1.86.0
  tailscale commit: ef24c2d2272b80a337bcf43e937326b9f0f3c91a
  long version: 1.86.0-tef24c2d22-g804e91c9c
  other commit: 804e91c9cad92778940d2d744ed84e45d6713cba
  go version: go1.24.4

tailscale status returns only one line with the state of the current node, if it is the only one registered with the Tailscale account.

Puppet therefore runs the tailscale up command in every run, as is configured in init.pp#L127:

test $(tailscale status | wc -l) -gt 1