Skip to content

breaking: Change Tailscale onboarding behavior #19

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

Merged
merged 11 commits into from
Mar 9, 2025

Conversation

bendwyer
Copy link
Owner

@bendwyer bendwyer commented Mar 9, 2025

This PR makes a series of breaking changes.

Previous behavior in Tailscale was to add -1 to the end of a hostname if that hostname was already registered to a different machine.

Now the userdata.sh script will make a few API calls to clear the hostname that matches the AWS Lightsail instance that is in the process of onboarding. This requires the use of an OAuth client to make the API calls and complete registration. A tailnet key is no longer required.

Since a tailnet key is no longer required, the tailscale provider is no longer required. Additionally the time provider is no longer used directly by this module so it has also been removed.

Some flexibility has been added to how instance and hostname names are set. Previously they were a pattern built from different variables, but now they are both single variables that can be independently customized from the calling/root module instead of inside this module.

The lightsail_bundle_id has been parameterized, allowing larger instances to be deployed. Use caution, as IPv6-only bundles might not work with ip_address_type = dualstack.

Finally terraform-docs examples have been brought up to date.

@bendwyer bendwyer merged commit b57c9c8 into main Mar 9, 2025
5 checks passed
@bendwyer bendwyer deleted the change-tailscale-onboarding-behavior branch March 9, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant