fix: get ldap admin password in vault

This commit is contained in:
vincent 2024-02-13 20:31:14 +01:00
parent 2a731201a1
commit 5188d865d8

View File

@ -82,6 +82,16 @@ job "openldap" {
LDAP_TLS_CA_FILE = "${NOMAD_ALLOC_DIR}/data/ca.pem" LDAP_TLS_CA_FILE = "${NOMAD_ALLOC_DIR}/data/ca.pem"
} }
template {
data = <<EOH
{{ with secret "secrets/data/nomad/ldap"}}
LDAP_ADMIN_PASSWORD="{{ .Data.data.admin}}"
{{end}}
EOH
env=true
destination= "secrets/env"
}
#memberOf issue #memberOf issue
#https://github.com/bitnami/containers/issues/28335 #https://github.com/bitnami/containers/issues/28335
# https://tylersguides.com/guides/openldap-memberof-overlay # https://tylersguides.com/guides/openldap-memberof-overlay