File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1- resource "nomad_variable" "omniproxy" {
2- namespace = " mirror"
3- path = " nomad/jobs/nginx"
4-
5- items = {
6- certificate = " ${ acme_certificate . voidlinux_org . certificate_pem } ${ acme_certificate . voidlinux_org . issuer_pem } "
7- key = acme_certificate.voidlinux_org.private_key_pem
1+ resource "nomad_variable" "certs" {
2+ for_each = {
3+ " nomad/jobs/nginx" = " mirror"
4+ " nomad/jobs/nginx-control" = " infrastructure"
5+ " nomad/jobs/maddy" = " apps-restricted"
86 }
9- }
107
11- resource "nomad_variable" "controlproxy" {
12- namespace = " infrastructure"
13- path = " nomad/jobs/nginx-control"
8+ namespace = each. value
9+ path = each. key
1410
1511 items = {
1612 certificate = " ${ acme_certificate . voidlinux_org . certificate_pem } ${ acme_certificate . voidlinux_org . issuer_pem } "
You can’t perform that action at this time.
0 commit comments