Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 206ba4e

Browse files
Adding new parameters to cleanup phase (#540)
1 parent ba9d05e commit 206ba4e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

py-utils/src/utils/setup/openldap/openldap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def _get_list_of_phases_to_validate(self, phase_name: str):
157157

158158
def _expand_keys(self, key: str, phase_name: str):
159159
"""Substitute any occurence of machine-id or other such values."""
160+
if (phase_name == "CLEANUP"):
161+
return key
160162
cluster_id_val = None
161163
machine_id_val = self.machine_id
162164
if (self.cluster_id is not None and len(self.cluster_id) != 0):

py-utils/src/utils/setup/openldap/openldap_prov_config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ TEST:
4141
OPENLDAP_BASE_DN: "cortx>software>openldap>base_dn"
4242
RESET:
4343
CLEANUP:
44+
OPENLDAP_INSTALL_DIR: "cortx>software>openldap>install_dir"
45+
OPENLDAP_DATA_DIR: "cortx>software>openldap>data_dir"
4446
# Unsolicited Keys should be added to the bottom.
4547
CONFSTORE_OPENLDAP_CONST_KEY: "cortx"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# No keys required for cleanup
1+
cortx:
2+
software:
3+
openldap:
4+
install_dir: "/etc"
5+
data_dir: "/var/lib/ldap"

0 commit comments

Comments
 (0)