Update lldap to use dynamic ports

This commit is contained in:
IamTheFij 2022-11-15 09:40:43 -08:00
parent b098a325f8
commit cf2779c971

View File

@ -9,12 +9,10 @@ job "lldap" {
port "web" {
host_network = "loopback"
to = 17170
}
port "ldap" {
host_network = "loopback"
to = 3890
}
}
@ -92,6 +90,11 @@ job "lldap" {
source = "secrets/lldap_config.toml"
target = "/lldap_config.toml"
}
env = {
"LLDAP_LDAP_PORT" = "${NOMAD_PORT_ldap}"
"LLDAP_HTTP_PORT" = "${NOMAD_PORT_web}"
}
}
vault {