mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
replica install: acknowledge ca_host override
Fixup for commit c0fd5e39c7
. Only set
ca_host to source master hostname if ca_host points to the local host.
This permits users to override ca_host in /etc/ipa/default.conf when
installing a replica.
Related: https://pagure.io/freeipa/issue/7744
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
This commit is contained in:
parent
885af7fe92
commit
52e5ef81a5
@ -816,8 +816,12 @@ def promote_check(installer):
|
||||
config.host_name = api.env.host
|
||||
config.domain_name = api.env.domain
|
||||
config.master_host_name = api.env.server
|
||||
# Try to use same master for CA install
|
||||
config.ca_host_name = api.env.server
|
||||
if not api.env.ca_host or api.env.ca_host == api.env.host:
|
||||
# ca_host has not been configured explicitly, prefer source master
|
||||
config.ca_host_name = api.env.server
|
||||
else:
|
||||
# default to ca_host from IPA config
|
||||
config.ca_host_name = api.env.ca_host
|
||||
config.kra_host_name = config.ca_host_name
|
||||
config.ca_ds_port = 389
|
||||
config.setup_ca = options.setup_ca
|
||||
|
Loading…
Reference in New Issue
Block a user