From 885fa8b2181cab9d6c7351dea9e32430e368eeed Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 25 Aug 2015 15:42:25 -0400 Subject: Allow to install the KRA on a promoted server Signed-off-by: Simo Sorce --- install/tools/ipa-ca-install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/tools/ipa-ca-install b/install/tools/ipa-ca-install index 0a76b3dd3..b57924c9d 100755 --- a/install/tools/ipa-ca-install +++ b/install/tools/ipa-ca-install @@ -29,7 +29,7 @@ from ipaserver.install import certs from ipaserver.install.installutils import create_replica_config from ipaserver.install.installutils import check_creds, ReplicaConfig from ipaserver.install import dsinstance, ca -from ipaserver.install import cainstance, custodiainstance +from ipaserver.install import cainstance, custodiainstance, service from ipapython import dogtag from ipapython import version from ipalib import api @@ -160,7 +160,8 @@ def install_replica(safe_options, options, filename): config.subject_base = attrs.get('ipacertificatesubjectbase')[0] if config.master_host_name is None: - config.ca_host_name = cainstance.find_ca_server(api.env.ca_host, conn) + config.ca_host_name = \ + service.find_providing_server('CA', conn, api.env.ca_host) config.master_host_name = config.ca_host_name else: config.ca_host_name = config.master_host_name -- cgit