-
-
Notifications
You must be signed in to change notification settings - Fork 506
fix: change private network interface and ssh connection timeout #1950
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ ${cloudinit_runcmd_common} | |
| # Configure default routes based on public ip availability | ||
| %{if private_network_only~} | ||
| # Private-only setup: eth0 is the private interface | ||
| - [ip, route, add, default, via, '${network_gw_ipv4}', dev, 'eth0', metric, '100'] | ||
| - [ip, route, add, default, via, '${network_gw_ipv4}', dev, 'enp7s0', metric, '100'] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the network interface name to |
||
| %{else~} | ||
| # Standard setup: eth0 is public, configure both IPv4 and IPv6 | ||
| - [ip, route, add, default, via, '172.31.1.1', dev, 'eth0', metric, '100'] | ||
|
|
||
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.
The
ConnectTimeoutvalue is hardcoded to10. While increasing the timeout from 2s is a good improvement, hardcoding the new value reduces the module's flexibility. It would be better to expose this as a variable (e.g.,ssh_connect_timeoutwith a default of10) so that users of the module can adjust it based on their specific network conditions and server startup times.