Use return vars for service acl

This commit is contained in:
IamTheFij 2024-01-16 14:16:21 -08:00
parent 4fe3d46d5f
commit 9ba74ce698

View File

@ -59,7 +59,7 @@ namespace "default" {
EOH EOH
job_acl { job_acl {
job_id = var.name job_id = resource.nomad_job.service.id
group = var.name group = var.name
task = "mysql-bootstrap" task = "mysql-bootstrap"
} }
@ -97,7 +97,7 @@ namespace "default" {
EOH EOH
job_acl { job_acl {
job_id = var.name job_id = resource.nomad_job.service.id
group = var.name group = var.name
task = "stunnel" task = "stunnel"
} }
@ -119,7 +119,7 @@ namespace "default" {
EOH EOH
job_acl { job_acl {
job_id = var.name job_id = resource.nomad_job.service.id
group = var.name group = var.name
task = "postgres-bootstrap" task = "postgres-bootstrap"
} }
@ -157,7 +157,7 @@ namespace "default" {
EOH EOH
job_acl { job_acl {
job_id = var.name job_id = resource.nomad_job.service.id
group = var.name group = var.name
task = "stunnel" task = "stunnel"
} }
@ -195,7 +195,7 @@ namespace "default" {
EOH EOH
job_acl { job_acl {
job_id = var.name job_id = resource.nomad_job.service.id
group = var.name group = var.name
task = "stunnel" task = "stunnel"
} }
@ -217,7 +217,7 @@ namespace "default" {
EOH EOH
job_acl { job_acl {
job_id = var.name job_id = resource.nomad_job.service.id
group = var.name group = var.name
task = var.name task = var.name
} }