summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-08-25 15:42:25 -0400
committerSimo Sorce <simo@redhat.com>2015-10-20 13:22:58 -0400
commit885fa8b2181cab9d6c7351dea9e32430e368eeed (patch)
tree431a62a26b3a47a0544593c8569229a1aa9df51a /install
parent5d5de8c3e1c6d5ce24dd9860e112547bb8705612 (diff)
downloadfreeipa-custodia.tar.gz
freeipa-custodia.tar.xz
freeipa-custodia.zip
Allow to install the KRA on a promoted servercustodia
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'install')
-rwxr-xr-xinstall/tools/ipa-ca-install5
1 files changed, 3 insertions, 2 deletions
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