resource "nomad_job" "lldap" { jobspec = templatefile("${path.module}/lldap.nomad", { use_wesher = var.use_wesher, }) depends_on = [resource.nomad_job.mysql-server] # Block until deployed as there are servics dependent on this one detach = false } # Give access to ldap secrets resource "nomad_acl_policy" "lldap_ldap_secrets" { name = "lldap-secrets-ldap" description = "Give access to LDAP secrets" rules_hcl = <