forked from harvester/harvester-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to set hostname via DHCP during install
This is an alternative to harvester#717 Here we switch the order of the "Configure hostname" and "Configure network" installer pages, so that "Configure network" comes first. This allows us to set DHCLIENT_SET_HOSTNAME="yes" when applying the management NIC config. If DHCP is used, and the DHCP server is configured to specify a hostname, the live environment will then automatically have its hostname set to whatever it got from the DHCP server. Then, on the hostname page, we can default the hostname to that value, which the user is still free to change should they wish. If DHCP isn't used, or if the DHCP server doesn't specify a hostname, there's no change to the existing behaviour - the hostname field will initially be blank, and the user will be required to fill it out. Related issue: harvester/harvester#1444 Signed-off-by: Tim Serong <[email protected]>
- Loading branch information
Showing
2 changed files
with
71 additions
and
26 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