auberge host detect-tailscale-ip
Detect and cache the host’s Tailscale IPv4 address.
auberge host detect-tailscale-ip [NAME]# Alias: auberge h dtiIf NAME is omitted, you’ll be prompted to select a host.
What it does
Section titled “What it does”- SSHs into the host using its existing SSH key.
- Runs
tailscale ip -4on the remote. - Picks the first CGNAT IPv4 address (
100.64.0.0/10). - Persists it to
~/.config/auberge/hosts.tomlunder the host’stailscale_ipfield, and regenerates~/.ssh/config.d/auberge.conf.
The address is a fact, not a decision: this command never sets or clears prefer_tailnet, so caching an address for a host never starts routing over it. Enabling the route is auberge host edit.
Once cached, auberge dns set-all --host <name> automatically points tailnet-only subdomains (apps with tailnet_only: true in their playbook meta — currently bichon and paperless) at this IP, without needing per-app <app>_tailscale_ip keys in config.toml.
Examples
Section titled “Examples”# Detect for a specific hostauberge host detect-tailscale-ip auberge
# Interactive (prompts for host)auberge host detect-tailscale-ipAfter running, hosts.toml gains a line like:
[[hosts]]name = "auberge"address = "203.0.113.10"# …tailscale_ip = "100.99.62.26"Failure modes
Section titled “Failure modes”- SSH key not found: run
auberge ssh keygen --host <name>first. tailscalenot on the remotePATH: install Tailscale on the host (Auberge’sinfrastructurerole does this).- No CGNAT IPv4 returned: the Tailscale daemon may not be
Running; checksystemctl status tailscaledon the host.
Related
Section titled “Related”- auberge dns set-all — consumer of
tailscale_ip - Tailnet Transport — the other consumer:
prefer_tailnet - Tailnet-only Subdomains
- Hosts Configuration