Skip to content

Control default routes on boot #617

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 6 commits into from
Mar 12, 2025
Merged

Control default routes on boot #617

merged 6 commits into from
Mar 12, 2025

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Mar 12, 2025

Adds a gateway_ip OpenTofu variable which can be used to ensure (only) a default route via the specified IP exists.

Tested that:

  • it can add a default route if none is provided by the subnet
  • it can remove a default route on a dual-homed host where both subnets provide one
  • it makes no changes if the specified default route matches the subnet provided one

@sjpb
Copy link
Collaborator Author

sjpb commented Mar 12, 2025

@sjpb
Copy link
Collaborator Author

sjpb commented Mar 12, 2025

@sjpb
Copy link
Collaborator Author

sjpb commented Mar 12, 2025

@sjpb sjpb marked this pull request as ready for review March 12, 2025 16:23
@sjpb sjpb requested a review from a team as a code owner March 12, 2025 16:23
Copy link
Collaborator

@jovial jovial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks sensible to me

@sjpb sjpb merged commit c50ca67 into main Mar 12, 2025
7 checks passed
@sjpb sjpb deleted the feat/cloudinit-gateways-v4 branch March 12, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants