-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set filename to support auto update feature #449
Conversation
Source file will be saved as sources.list.d/tailscale.list
@cnkk Can you link to Tailscale documentation or describe how you came to this realization? I can't see any reference to this in https://tailscale.com/kb/1067/update . Though this seems to have happened by default on my real Debian system: Also, I'm a fan of Plausible :) |
Hi! The auto update feature just triggers a exporter:~# tailscale update
This will update Tailscale from 1.60.1 to 1.62.0. Continue? [y/n] y
open /etc/apt/sources.list.d/tailscale.list: no such file or directory And this when auto update is enabled:
I think this is the part in the source code: https://github.com/tailscale/tailscale/blob/08ebac9acb5d4a6d2ae6b01f282f1f0807c7561d/clientupdate/clientupdate.go#L428 |
Thanks, that would do it! What is the sources list filename that you are seeing assigned of tailscale.list? We'll definitely merge this in but I want to better understand what's going on, see if we need to make changes to other distros, maybe file an issue up to Tailscale. [Edit] Taking a look - Ubuntu 22.04:
Amazon 2023 / Rocky Linux 9 / Fedora (we set it explicitly in the role):
OpenSUSE:
Confirming this behavior is specific to Debian distros, and introduced by this role, not upstream. https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_repository_module.html will use the repository source URL to generate a file name unless we provide it. Doesn't seem like we can tweak the OpenSUSE repo name, since trying to rename it to
So seems like the only change needed is to the Debian install. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to follow up this PR with a new Molecule test to run tailscale update
and ensure we don't introduce a regression in the future.
The Tailscale client auto-update feature requires the sources list file in
/etc/apt/sources.list.d/tailscale.list
otherwise it won't work.