mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-14 15:05:00 -05:00
Delay enabling services until end of installer
Service entries in cn=FQDN,cn=masters,cn=ipa,cn=etc are no longer created as enabled. Instead they are flagged as configuredService. At the very end of the installer, the service entries are switched from configured to enabled service. - SRV records are created at the very end of the installer. - Dogtag installer only picks fully installed servers - Certmonger ignores all configured but not yet enabled servers. Fixes: https://pagure.io/freeipa/issue/7566 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
@@ -242,7 +242,7 @@ class KrbInstance(service.Service):
|
||||
# We do not let the system start IPA components on its own,
|
||||
# Instead we reply on the IPA init script to start only enabled
|
||||
# components as found in our LDAP configuration tree
|
||||
self.ldap_enable('KDC', self.fqdn, None, self.suffix)
|
||||
self.ldap_configure('KDC', self.fqdn, None, self.suffix)
|
||||
|
||||
def __start_instance(self):
|
||||
try:
|
||||
@@ -619,7 +619,7 @@ class KrbInstance(service.Service):
|
||||
except ValueError as error:
|
||||
logger.debug("%s", error)
|
||||
|
||||
# disabled by default, by ldap_enable()
|
||||
# disabled by default, by ldap_configure()
|
||||
if enabled:
|
||||
self.enable()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user