Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Failover Location to other PDP Cluster Location #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ dsconfig create-ldap-health-check \
--type replication-backlog \
--set enabled:true \
--set base-dn:dc=example,dc=com

# Attempt to configure Locations using $Location = this location ; $PDP_LOC2 = secondary - preferred falover location.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - "falover"

# Add 2ndary location - from ENV Var provided - could be derived from (K8S_CLUSTERS | replace K8S_CLUSTER "")
dsconfig create-location \
--location-name "${PD_LOC2}" --set "preferred-failover-location:${LOCATION}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this!
We should add a env_vars file to this profile that provides a default value for PD_LOC2 so that this profile can work when it isn't explicitly set. For example, you can see the env_vars file we use in our baseline profile here - https://github.com/pingidentity/pingidentity-server-profiles/blob/master/baseline/pingdirectory/env_vars


# current location - set failover to 2ndary just created
dsconfig set-location-prop --location-name "${LOCATION}" --set "preferred-failover-location:${PD_LOC2}"

# Create an LDAP external server template with the above
dsconfig create-ldap-external-server-template \
Expand Down