6ecb2c366f
Publish snapshot / snapshot (push) Successful in 1m2s
[fix] default parameter run records parameters in session for replay[fix] remove default parameters for several cubes
Tailscale Cube
Installs and authenticates the Tailscale client on a Linux host.
Features
- Automated Installation: Adds the official Tailscale repository and installs the package.
- Headless Authentication: Uses a Tailscale Auth Key for zero-interaction setup.
- Headscale Support: Can be configured to connect to a custom login server.
- Startup persistence: Ensures the
tailscaleddaemon is enabled and running.
Configuration
| Variable | Default | Description |
|---|---|---|
AUTH_KEY |
"" |
Secret. Tailscale Auth Key (recommended to use a 'reusable' or 'ephemeral' key). |
LOGIN_SERVER |
https://controlplane.tailscale.com |
The coordination server URL. Set this to your Headscale instance URL if applicable. |
EXTRA_ARGS |
"" |
Additional flags to pass to tailscale up (e.g., --advertise-exit-node). |
FORCE_REAUTH |
false |
If true, forces the client to re-authenticate. |
Usage
nopy install tailscale
When prompted, provide your AUTH_KEY. If you are using Headscale, also provide the LOGIN_SERVER URL.
AUTH_KEY is declared in the manifest's secrets, so nopy keeps it out of session
and history files and masks it in any command it prints. It is asked for again on
replay, and a --use-defaults replay refuses rather than joining the tailnet with
an empty key. Prefer an ephemeral key regardless — the value is still on pyinfra's
command line while the deployment runs.