From 72f0ecde783be7d304044eff60c8c85e160d65d8 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Apr 12 2017 13:52:41 +0000 Subject: Add the force-join option to replica install When installing client from inside replica installation on DL1, it's possible that the client installation would fail and recommend using --force-join option which is not available in replica installer. Add the option there. https://pagure.io/freeipa/issue/6183 Reviewed-By: Tomas Krizek Reviewed-By: Jan Cholasta --- diff --git a/ipaserver/install/server/__init__.py b/ipaserver/install/server/__init__.py index 89444f2..028a4aa 100644 --- a/ipaserver/install/server/__init__.py +++ b/ipaserver/install/server/__init__.py @@ -166,7 +166,6 @@ class ServerInstallInterface(ServerCertificateInstallInterface, """ description = "Server" - force_join = False kinit_attempts = 1 fixed_primary = True ntp_servers = None @@ -526,6 +525,7 @@ class ServerMasterInstall(ServerMasterInstallInterface): Server master installer """ + force_join = False servers = None no_wait_for_dns = True host_password = None diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index b82d7b4..383932b 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -935,6 +935,8 @@ def ensure_enrolled(installer): args.append("--no-sshd") if installer.mkhomedir: args.append("--mkhomedir") + if installer.force_join: + args.append("--force-join") ipautil.run(args, stdin=stdin, nolog=nolog, redirect_output=True) print()