aboutsummaryrefslogtreecommitdiffstats
path: root/terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl')
-rw-r--r--terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl b/terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl
index 9cb5f8ef45..3c4761c567 100644
--- a/terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl
+++ b/terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl
@@ -87,6 +87,15 @@ job "${job_name}" {
# to 1.
count = 1
+ # https://www.nomadproject.io/docs/job-specification/volume
+ %{ if use_host_volume }
+ volume "prod-volume1-nginx" {
+ type = "host"
+ read_only = false
+ source = "${host_volume}"
+ }
+ %{ endif }
+
# The restart stanza configures a tasks's behavior on task failure. Restarts
# happen on the client that is running the task.
restart {