[RFE] Option to set hostname and default
Submitted by Stephen Gallagher
Assigned to Stef Walter
Description
It is not uncommon for systems to have a generic default hostname such as "localhost.localdomain" (Fedora, RHEL, CentOS, etc.)
If a user has not explicitly chosen their hostname before running realmd, the following should happen:
- realmd should offer a command-line flag (and D-BUS option) to set the hostname explicitly during enrollment
- If no hostname is provided and the machine's current name matches a whitelist of known default names, realmd should either refuse to enroll or else generate a unique default hostname (including the domain name being joined).
Note that there is an open RFE with systemd for generating repeatable unique strings from the machine-id for this purpose: https://github.com/systemd/systemd/issues/4667