From ab4b7f7ca4a3a477df1cf61418f2d63755652dcc Mon Sep 17 00:00:00 2001
From: Johnny Hughes <johnny@centos.org>
Date: Mon, 14 May 2018 14:34:43 +0000
Subject: [PATCH] set ipaplatform to rhel for compatibilty for updates

---
 SOURCES/0044-replica-install-pass-ip-address-to-client-install.patch |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/SOURCES/0044-replica-install-pass-ip-address-to-client-install.patch b/SOURCES/0044-replica-install-pass-ip-address-to-client-install.patch
new file mode 100644
index 0000000..cdb3af3
--- /dev/null
+++ b/SOURCES/0044-replica-install-pass-ip-address-to-client-install.patch
@@ -0,0 +1,38 @@
+From d1506d6a44b4c4b85772cd0764113f2b20a147fe Mon Sep 17 00:00:00 2001
+From: Stanislav Laznicka <slaznick@redhat.com>
+Date: Fri, 6 Apr 2018 09:10:20 +0200
+Subject: [PATCH] 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 <slaznick@redhat.com>
+---
+ ipaserver/install/server/replicainstall.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py
+index 5a37aea0ac913d5c9cb88346345ba5760a9e923d..42e4615ad2dc1f604f5d8d14f8e57e3e4674bcb9 100644
+--- a/ipaserver/install/server/replicainstall.py
++++ b/ipaserver/install/server/replicainstall.py
+@@ -942,6 +942,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
+-- 
+2.14.3
+

--
Gitblit v1.8.0