Feature #17521
need support for 'use_shortname_for_vms' for all hosts not just vms
Description
Few customers have requested support for wanting short host names and do not want domain names appended. They want to select domain names and want the resolv.conf info on their hosts filled correctly.
Issue http://projects.theforeman.org/issues/2975 handled some of this but was tagged as vm only. We need it to be generally applicable.
Related issues
Associated revisions
History
#1
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4068 added
#2
Updated by Dominic Cleal over 6 years ago
The description doesn't make much sense to me - the setting changes the name of the virtual machine, not the name of the host in Foreman. Hosts on CRs still have an FQDN.
This seems like a duplicate more of #11989, creating hosts without a domain.
The "shortname for VMs" setting should not be used to change the behaviour of the "name" field within Foreman, that is not its purpose - it's meant to only affect VM names.
#3
Updated by Partha Aji about 6 years ago
Dominic Cleal wrote:
The description doesn't make much sense to me - the setting changes the name of the virtual machine, not the name of the host in Foreman. Hosts on CRs still have an FQDN.
This seems like a duplicate more of #11989, creating hosts without a domain.
The "shortname for VMs" setting should not be used to change the behaviour of the "name" field within Foreman, that is not its purpose - it's meant to only affect VM names.
Added a new setting "append_domain_name_for_hosts" that will now always be set. The user can unset this and in that case the domain name will not get attached.
#4
Updated by Thomas McKay about 6 years ago
- Target version set to 161
#5
Updated by Partha Aji over 5 years ago
- Blocks Bug #21929: need short host name matchers added
#6
Updated by Partha Aji about 5 years ago
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Applied in changeset e87d9bee2f47ad7dfac23c5b6874dadf1708d6b0.
#7
Updated by Marek Hulán about 5 years ago
- Legacy Backlogs Release (now unused) set to 330
Fixes #17521 - Use short name for hosts
This commit enforces the policy of using short name for hosts
while preserving the fqdn for interface values provided the user has
enabled 'append_domain_name_for_hosts' Setting.