autoinstall: dynamic hostname from DHCP for the installer
Bug #1905932 reported by
eoli3n
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
What I get:
With the installer, identity/hostname key is required, and set a static hostname.
What I need:
Getting hostname from DHCP.
I need to use ansible in pull mode in a chroot late command to configure the host. Ansible use current hostname to find what tasks it needs to run for the current host. I also need to make some web queries with $HOSTNAME as php arg.
How:
To get hostname from DHCP on a installed system, you need to empty /etc/hostname.
From the installer, a good behaviour would be:
If the key identity/hostname isn't defined, fallback to DHCP hostnames.
summary: |
- dynamic hostname from DHCP for the installer + autoinstall: dynamic hostname from DHCP for the installer |
To post a comment you must log in.
https:/ /serverfault. com/questions/ 1024584/ automated- ubuntu- 20-04-server- install- how-can- i-get-hostname- from-dhcp- server
Nothing better ?