Feature #17521

need support for 'use_shortname_for_vms' for all hosts not just vms

Added by Partha Aji 6 months ago. Updated 4 months ago.

Status:Ready For Testing
Priority:Normal
Assigned To:Partha Aji
Category:Host creation
Target version:Katello - Team Tom - iteration 10
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4068
Story points-
Velocity based estimate-

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.

History

#1 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4068 added

#2 Updated by Dominic Cleal 6 months 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 4 months 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 4 months ago

  • Target version set to Team Tom - iteration 10

Also available in: Atom PDF