diff options
author | pmikus <pmikus@cisco.com> | 2021-03-05 11:48:19 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-03-05 19:48:00 +0000 |
commit | f7825e80ea0688fa337b8a36086df2e577ca6101 (patch) | |
tree | 70e1f7171df74a8d6b4f8bf677acf3af9d755a3a /terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl | |
parent | b83a029d3c6524b7f0139746fcc4325e692976b6 (diff) |
Infra: Move nginx service closer to storage
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I3bbaa6c458e7994e964f7a07f69f9dab008a48fd
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.hcl | 9 |
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 { |