feat(tailscale): add the tailscale role #396

Open
opened 2026-11-26 18:43:23 +00:00 by Claude · 0 comments
Owner

Add a tailscale role. It installs Tailscale from the upstream APT repository, with the keyring pinned by sha256, enables tailscaled, and brings the node up with an auth key. It can also update to the APT candidate version, and remove or purge. Apart from pve_vm, it is the last wave 2 role in the README Roadmap.

Decisions (maintainer, 2026-11-26)

  1. Testing: a real install, no enrolment. The molecule scenario covers:

    • the install from pkgs.tailscale.com (keyring checksum, APT source, package);
    • tailscaled enabled and running;
    • the update path, from a downgraded version to the candidate;
    • remove and purge;
    • the refusal cases.

    tailscale up (joining a tailnet) is not exercised. The role README says so in one line. Downloading from upstream at test time is accepted, as for docker.

  2. Platform: no tailscale_system_type input. The role asserts Ubuntu, and tailscale_apt_release defaults to the host's release. It declares noble and resolute, per roles/AGENTS.md, and molecule tests noble.

  3. No legacy-name guards (tailscale_ufw_rules, tailscale_apt_list_url).

  4. New input tailscale_up (bool, default true). When it is true and the node is not Running, the role runs tailscale up, and it first asserts that tailscale_auth_key is defined and non-empty. The key has no default. The scenario sets tailscale_up: false, so converge is idempotent without enrolling.

  5. Fix tailscale_userspace_networking. --tun=userspace-networking is a tailscaled flag, not a tailscale up flag. The role sets it in tailscaled's FLAGS (/etc/default/tailscaled) and restarts the daemon. The scenario uses this input, because a container may have no /dev/net/tun.

  6. No references outside this repository in the role, its README or its comments.

  7. Otherwise, the role keeps the tailscale_* interface. Registered results and facts carry the __tailscale_ prefix.

Order

  • PR: add the tailscale role with its molecule scenario, README, Roadmap and galaxy.yml update, and a minor_changes fragment
  • Release 3.1.0

🤖 Generated with Claude Code

Add a `tailscale` role. It installs Tailscale from the upstream APT repository, with the keyring pinned by sha256, enables `tailscaled`, and brings the node up with an auth key. It can also update to the APT candidate version, and remove or purge. Apart from `pve_vm`, it is the last wave 2 role in the README Roadmap. ## Decisions (maintainer, 2026-11-26) 1. **Testing: a real install, no enrolment.** The molecule scenario covers: - the install from pkgs.tailscale.com (keyring checksum, APT source, package); - `tailscaled` enabled and running; - the update path, from a downgraded version to the candidate; - remove and purge; - the refusal cases. `tailscale up` (joining a tailnet) is not exercised. The role README says so in one line. Downloading from upstream at test time is accepted, as for `docker`. 2. **Platform:** no `tailscale_system_type` input. The role asserts Ubuntu, and `tailscale_apt_release` defaults to the host's release. It declares `noble` and `resolute`, per roles/AGENTS.md, and molecule tests `noble`. 3. **No legacy-name guards** (`tailscale_ufw_rules`, `tailscale_apt_list_url`). 4. **New input `tailscale_up`** (bool, default `true`). When it is true and the node is not Running, the role runs `tailscale up`, and it first asserts that `tailscale_auth_key` is defined and non-empty. The key has no default. The scenario sets `tailscale_up: false`, so converge is idempotent without enrolling. 5. **Fix `tailscale_userspace_networking`.** `--tun=userspace-networking` is a `tailscaled` flag, not a `tailscale up` flag. The role sets it in `tailscaled`'s `FLAGS` (`/etc/default/tailscaled`) and restarts the daemon. The scenario uses this input, because a container may have no `/dev/net/tun`. 6. **No references outside this repository** in the role, its README or its comments. 7. Otherwise, the role keeps the `tailscale_*` interface. Registered results and facts carry the `__tailscale_` prefix. ## Order - [ ] PR: add the `tailscale` role with its molecule scenario, README, Roadmap and galaxy.yml update, and a `minor_changes` fragment - [ ] Release 3.1.0 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added the Kind/Feature label 2026-11-26 18:43:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#396