mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Hostname used by IPA must be a system hostname
Make sure that the hostname IPA uses is a system hostname. If user passes a non-system hostname, update the network settings and system hostname in the same way that ipa-client-install does. This step should prevent various services failures which may not be ready to talk to IPA with non-system hostname. https://fedorahosted.org/freeipa/ticket/1931
This commit is contained in:
committed by
Rob Crittenden
parent
9bff6cb8a9
commit
77cc5e0246
@@ -955,8 +955,10 @@ def install(options, env, fstore, statestore):
|
||||
if not options.unattended and not user_input("Continue to configure the system with these values?", False):
|
||||
return CLIENT_INSTALL_ERROR
|
||||
|
||||
if options.hostname:
|
||||
if options.hostname and not options.on_master:
|
||||
# configure /etc/sysconfig/network to contain the hostname we set.
|
||||
# skip this step when run by ipa-server-install as it always configures
|
||||
# hostname if different from system hostname
|
||||
ipaservices.backup_and_replace_hostname(fstore, statestore, options.hostname)
|
||||
|
||||
if not options.unattended:
|
||||
|
||||
Reference in New Issue
Block a user