summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install/ipa-client-install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-10-13 12:16:15 +0200
committerRob Crittenden <rcritten@redhat.com>2011-10-13 00:54:41 -0400
commit77cc5e024601ae7be6ce706499d5f403c8b71408 (patch)
treeab34bdf61acf747f32ae52344bed0259a1f00692 /ipa-client/ipa-install/ipa-client-install
parent9bff6cb8a955c3f4b167e05856b40f6e2ee5dca8 (diff)
downloadfreeipa-77cc5e024601ae7be6ce706499d5f403c8b71408.tar.gz
freeipa-77cc5e024601ae7be6ce706499d5f403c8b71408.tar.xz
freeipa-77cc5e024601ae7be6ce706499d5f403c8b71408.zip
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
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index dd9b43684..fd927d225 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -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: