|
|
95ea96 |
From 5a5b232b721a68e37de2e25f134b8e585ad71393 Mon Sep 17 00:00:00 2001
|
|
|
2737e7 |
From: Christian Heimes <cheimes@redhat.com>
|
|
|
2737e7 |
Date: Tue, 19 Jun 2018 19:10:27 +0200
|
|
|
2737e7 |
Subject: [PATCH] Always set ca_host when installing replica
|
|
|
2737e7 |
|
|
|
2737e7 |
ipa-replica-install only set ca_host in its temporary
|
|
|
2737e7 |
/etc/ipa/default.conf, when it wasn't installing a replica with CA. As a
|
|
|
2737e7 |
consequence, the replica installer was picking a random CA server from
|
|
|
2737e7 |
LDAP.
|
|
|
2737e7 |
|
|
|
2737e7 |
Always set the replication peer as ca_host. This will ensure that the
|
|
|
2737e7 |
installer uses the same replication peer for CA. In case the replication
|
|
|
2737e7 |
peer is not a CA master, the installer will automatically pick another
|
|
|
2737e7 |
host later.
|
|
|
2737e7 |
|
|
|
2737e7 |
See: https://pagure.io/freeipa/issue/7566
|
|
|
2737e7 |
Signed-off-by: Christian Heimes <cheimes@redhat.com>
|
|
|
2737e7 |
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
|
|
|
2737e7 |
---
|
|
|
2737e7 |
ipaserver/install/server/replicainstall.py | 6 ++----
|
|
|
2737e7 |
1 file changed, 2 insertions(+), 4 deletions(-)
|
|
|
2737e7 |
|
|
|
2737e7 |
diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py
|
|
|
95ea96 |
index e2a37bc4c8305c525f224f2fb80cb2629e8ece24..33f3ae9e616b34a3ab0ff8e4257552855e817e7c 100644
|
|
|
2737e7 |
--- a/ipaserver/install/server/replicainstall.py
|
|
|
2737e7 |
+++ b/ipaserver/install/server/replicainstall.py
|
|
|
95ea96 |
@@ -241,11 +241,9 @@ def create_ipa_conf(fstore, config, ca_enabled, master=None):
|
|
|
2737e7 |
gopts.extend([
|
|
|
2737e7 |
ipaconf.setOption('enable_ra', 'True'),
|
|
|
2737e7 |
ipaconf.setOption('ra_plugin', 'dogtag'),
|
|
|
2737e7 |
- ipaconf.setOption('dogtag_version', '10')
|
|
|
2737e7 |
+ ipaconf.setOption('dogtag_version', '10'),
|
|
|
2737e7 |
+ ipaconf.setOption('ca_host', config.ca_host_name)
|
|
|
2737e7 |
])
|
|
|
2737e7 |
-
|
|
|
2737e7 |
- if not config.setup_ca:
|
|
|
2737e7 |
- gopts.append(ipaconf.setOption('ca_host', config.ca_host_name))
|
|
|
2737e7 |
else:
|
|
|
2737e7 |
gopts.extend([
|
|
|
2737e7 |
ipaconf.setOption('enable_ra', 'False'),
|
|
|
2737e7 |
--
|
|
|
95ea96 |
2.14.4
|
|
|
2737e7 |
|