-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add host preflights for all needed ports (#1205)
* feat: add host preflights for all needed ports checks if all needed ports are available on the server prior to start the installation. * chore: add e2e test for port failures make sure preflights are failing if some ports are in use. * feat: auto reboot node on reset now we reboot the node after finishing the reset command. * chore(e2e): wait for dbus + remove --reboot from reset * chore: simplify things by just sleeping * chore: log when sleeping * chore(e2e): persist default route
- Loading branch information
1 parent
2c793d9
commit 9150c74
Showing
7 changed files
with
481 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
echo " | ||
[Unit] | ||
Description=Set default route through proxy node | ||
After=network-online.targej | ||
Wants=network-online.target | ||
[Service] | ||
Type=oneshot | ||
ExecStartPre=/bin/sleep 5 | ||
ExecStart=/bin/bash -c 'ip route del default; ip route add default via 10.0.0.254' | ||
RemainAfterExit=true | ||
[Install] | ||
WantedBy=multi-user.target" > /etc/systemd/system/default-route-through-proxy.service | ||
|
||
systemctl daemon-reload | ||
systemctl enable default-route-through-proxy | ||
systemctl start default-route-through-proxy |
Oops, something went wrong.