Project

General

Profile

Feature #17521

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

Added by Partha Aji over 1 year ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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

Blocks Foreman - Bug #21929: need short host name matchersNew2017-12-11

Associated revisions

Revision e87d9bee (diff)
Added by Partha Aji 7 months ago

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.

History

#1 Updated by The Foreman Bot over 1 year 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 1 year 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 over 1 year 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 over 1 year ago

  • Target version set to 161

#5 Updated by Partha Aji 8 months ago

  • Blocks Bug #21929: need short host name matchers added

#6 Updated by Partha Aji 7 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#7 Updated by Marek Hulán 7 months ago

  • Legacy Backlogs Release (now unused) set to 330

Also available in: Atom PDF