Skip to content

Commit

Permalink
Merge pull request #337 from appuio/install/remove-ldap
Browse files Browse the repository at this point in the history
Replace configuring of LDAP service with Keycloak service
  • Loading branch information
DebakelOrakel authored Jun 24, 2024
2 parents 4af1ffa + e1bc595 commit 53cc8df
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 36 deletions.
4 changes: 0 additions & 4 deletions docs/modules/ROOT/pages/how-tos/cloudscale/install.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,6 @@ vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/floaty \
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/registry \
httpSecret=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 128)
# Set the LDAP password
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/vshn-ldap \
bindPassword=${LDAP_PASSWORD}
# Generate a master password for K8up backups
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/global-backup \
password=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 32)
Expand Down
4 changes: 0 additions & 4 deletions docs/modules/ROOT/pages/how-tos/exoscale/install.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/exoscale/storage_iam \
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/registry \
httpSecret=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 128)
# Set the LDAP password
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/vshn-ldap \
bindPassword=${LDAP_PASSWORD}
# Generate a master password for K8up backups
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/global-backup \
password=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 32)
Expand Down
4 changes: 0 additions & 4 deletions docs/modules/ROOT/pages/how-tos/openstack/install.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/openstack/credentials \
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/registry \
httpSecret=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 128)
# Set the LDAP password
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/vshn-ldap \
bindPassword=${LDAP_PASSWORD}
# Generate a master password for K8up backups
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/global-backup \
password=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 32)
Expand Down
4 changes: 0 additions & 4 deletions docs/modules/ROOT/pages/how-tos/vsphere/install.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/vsphere/credentials \
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/registry \
httpSecret=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 128)
# Set the LDAP password
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/vshn-ldap \
bindPassword=${LDAP_PASSWORD}
# Generate a master password for K8up backups
vault kv put clusters/kv/${TENANT_ID}/${CLUSTER_ID}/global-backup \
password=$(LC_ALL=C tr -cd "A-Za-z0-9" </dev/urandom | head -c 32)
Expand Down
3 changes: 0 additions & 3 deletions docs/modules/ROOT/partials/install/prepare-syn-config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ yq eval -i ".parameters.openshift.clusterID = \"$(jq -r .clusterID "${INSTALLER_

yq eval -i ".parameters.openshift.ssh_key = \"$(cat ${SSH_PUBLIC_KEY})\"" \
${CLUSTER_ID}.yml

yq eval -i ".parameters.vshnLdap.serviceId = \"${LDAP_ID}\"" \
${CLUSTER_ID}.yml
----
+
[NOTE]
Expand Down
20 changes: 3 additions & 17 deletions docs/modules/ROOT/partials/install/register.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,10 @@ For customer clusters, set the following cluster facts in Lieutenant:
* `sales_order`: Name of the sales order to which the cluster is billed, such as `S10000`
* `release_channel`: Name of the syn component release channel to use, such as `stable`

=== Set up LDAP service
=== Set up Keycloak service

. Create an LDAP service
+
Use https://control.vshn.net/vshn/services/_create to create a service.
The name must contain the customer and the cluster name.
And then put the LDAP service ID in the following variable:
+
[source,bash]
----
export LDAP_ID="Your_LDAP_ID_here"
export LDAP_PASSWORD="Your_LDAP_pw_here"
----

[IMPORTANT]
====
Use the same casing as the underlying LDAP service.
Can be accessed by the hover text in the VSHN Control Panel.
image::ldap-service-id.png[alt=LDAP Service hover text, width=800]
====
The name and ID must be clusters name.
For the optional URL use the OpenShift console URL.

0 comments on commit 53cc8df

Please sign in to comment.