feat(tailscale): add the tailscale role #398
Open
Claude
wants to merge 2 commits from
feat/tailscale-role into main
pull from: feat/tailscale-role
merge into: Mortis:main
Mortis:main
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Needs Triage
Maintainer needs to evaluate this issue
Status
Ready for Agent
Fully specified, ready for an AFK agent
Status
Ready for Human
Requires human implementation
Wayfinder
Grilling
Decision ticket resolved in conversation with the maintainer
Wayfinder
Map
Wayfinder map: index of a planning effort and its decision tickets
Wayfinder
Prototype
Decision ticket resolved by reacting to a rough concrete artifact
Wayfinder
Research
Decision ticket resolved by reading outside sources
Wayfinder
Task
Manual work that must happen before a decision can be made
No labels
Kind/Feature
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#398
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #396
Adds
tailscale. The role:tailscaled;tailscale upwith an auth key while the node is not Running;It also updates the README role list and Roadmap (wave 2 is now just
pve_vm), the galaxy.yml description, and adds aminor_changesfragment.Decisions from #396, as applied:
tailscale_system_type. The role asserts Ubuntu, andtailscale_apt_releasefollows the host's release. It declares noble and resolute.tailscale_up(defaulttrue). The key has no default. A non-emptytailscale_auth_keyis asserted before any change, but only when the configure step runs.--tags remove,updateandhealthneed no key; the README lists the tags that do. Theupblock repeats the assert.tailscale_userspace_networkingsets--tun=userspace-networkinginFLAGSin/etc/default/tailscaled. Other flags andPORTare kept, and setting the input to false removes the flag. WhenFLAGSchanged ortailscaledis not active, the role runssystemctl reset-failedand restarts the daemon at once.__tailscale_.tailscale_state_dir, and 5 refusal cases.Deviations from #396, for the maintainer:
noble. roles/AGENTS.md ("declared means tested") requires every declared platform to be tested, so the scenario runs noble and resolute, as pihole and docker do.tailscale_remove: truestill requires the key, becauseupruns after the logout. Failing after the removal would be worse.Fixes over the source role, found in an independent review:
tailscaledunit.--check --tags configureworks on a fresh host.tailscale logoutreports a change only when it succeeds.Unchanged, as in the source role:
tailscale up.--tun=userspace-networkingis recognised.Verified
ansible-test sanity.--syntax-checkon converge/verify, andansible-doc -t role mortis.kamino.tailscale.--tagsruns on localhost.Not verified
tailscale upand enrolment (excluded by decision)./dev/net/tun).NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code:claude-opus-5-5
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.