Use single update LDIF for indices

Index definitions were split across four files. indices.ldif contained
the initial subset of indices. Three update files partly duplicated the
indices and partly added new indices.

All indices are now defined in a single update file that is sorted
alphanumerically.

The changeset avoids two additional index tasks and reduces installation
time by 5 to 10 seconds.

Fixes: https://pagure.io/freeipa/issue/8493
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes
2020-09-21 15:12:57 +02:00
parent ced1dcb1d9
commit e46c3792f3
7 changed files with 500 additions and 844 deletions

View File

@@ -1023,7 +1023,7 @@ class DsInstance(service.Service):
__add_principal('ipa-ldap-delegation-targets', 'ldap', self)
def __create_indices(self):
self._ldap_mod("indices.ldif")
self._ldap_update(["20-indices.update"])
def __certmap_conf(self):
write_certmap_conf(self.realm, self.ca_subject)