Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Infra: Move nginx service closer to storage
[csit.git]
/
terraform-ci-infra
/
1n_nmd
/
nginx
/
conf
/
nomad
/
nginx.hcl
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
9cb5f8e
..
3c4761c
100644
(file)
--- 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
# 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 {
# The restart stanza configures a tasks's behavior on task failure. Restarts
# happen on the client that is running the task.
restart {