Skip to content

Commit 769bb00

Browse files
committed
Add pki_ds_setup_vlv
1 parent 6fa2a7d commit 769bb00

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

base/server/etc/default.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pki_client_dir=%(home_dir)s/.dogtag/%(pki_instance_name)s
8484
pki_client_pkcs12_password=
8585
pki_ds_bind_dn=cn=Directory Manager
8686
pki_ds_create_new_db=True
87+
pki_ds_setup_vlv=False
8788

8889
# DEPRECATED: Use 'pki_ds_url' instead.
8990
pki_ds_ldap_port=389

base/server/python/pki/server/deployment/__init__.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ def setup_database(self, subsystem, master_config):
17551755
config.str2bool(self.mdict['pki_clone_setup_replication']):
17561756
self.setup_replication(subsystem, master_config)
17571757

1758-
# Always create search and VLV indexes since they will not be replicated
1758+
# Set up search indexes on each replica since they are not replicated
17591759
subsystem.add_indexes()
17601760

17611761
# When installing PKI replica the DS replication needs to be set up.
@@ -1793,8 +1793,10 @@ def setup_database(self, subsystem, master_config):
17931793
config.str2bool(self.mdict['pki_clone_reindex_data']):
17941794
subsystem.rebuild_indexes()
17951795

1796-
subsystem.add_vlv()
1797-
subsystem.reindex_vlv()
1796+
if config.str2bool(self.mdict['pki_ds_setup_vlv']):
1797+
# Set up VLV indexes on each replica since they are not replicated
1798+
subsystem.add_vlv()
1799+
subsystem.reindex_vlv()
17981800

17991801
def setup_replication(self, subsystem, master_config):
18001802

0 commit comments

Comments
 (0)