Skip to content

Commit

Permalink
Checks if Dir Server is installed and running before IPA installation
Browse files Browse the repository at this point in the history
In cases when IPA is installed in two steps (external CA), it's
necessary to check (in the second step) if Dir. Server is
running before continue with the installation. If it's not,
start Directory Server.

https://pagure.io/freeipa/issue/6611

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
  • Loading branch information
Felipe Barreto authored and flo-renaud committed Jan 18, 2018
1 parent 262f980 commit b2bafe8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ipaserver/install/server/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,14 @@ def install_check(installer):
# check addresses here, dns module is doing own check
no_matching_interface_for_ip_address_warning(ip_addresses)

instance_name = "-".join(realm_name.split("."))
dirsrv = services.knownservices.dirsrv
if (options.external_cert_files
and dirsrv.is_installed(instance_name)
and not dirsrv.is_running(instance_name)):
logger.debug('Starting Directory Server')
services.knownservices.dirsrv.start(instance_name)

if options.setup_adtrust:
adtrust.install_check(False, options, api)

Expand Down

0 comments on commit b2bafe8

Please sign in to comment.