From 55b313984a4d28bdd31c23250c28144eda58ea59 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Apr 10 2018 12:58:02 +0000 Subject: replica-install: pass --ip-address to client install In replica DL1 installation, the --ip-address option was not passed down to the ipa-client-install script (when not promoting client). This resulted in creating DNS records for all of the host's interface IP adresses instead of just those specified. This patch passes all the --ip-address options down to the client installation script. https://pagure.io/freeipa/issue/7405 Reviewed-By: Stanislav Laznicka --- diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index 16b478a..646e2a4 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -946,6 +946,10 @@ def ensure_enrolled(installer): args.append("--mkhomedir") if installer.force_join: args.append("--force-join") + if installer.ip_addresses: + for ip in installer.ip_addresses: + # installer.ip_addresses is of type [CheckedIPAddress] + args.extend(("--ip-address", str(ip))) try: # Call client install script