aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2020-12-05 23:29:01 +0000
committerPeter Mikus <pmikus@cisco.com>2020-12-07 09:10:21 +0000
commit0f9b20775b4a656b67c7039e2dda4cf676af2b21 (patch)
treef602d1a220546bbbbd1f1ea5ad530d1762832481 /resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad
parent36e59060f08d9978b1ae3dc4a4dd5da1caf6cd19 (diff)
Ansible: Enable consul TLS
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: Ia53acc4441087e93a51d87097adea0b220d10144
Diffstat (limited to 'resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad')
-rw-r--r--resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad22
1 files changed, 21 insertions, 1 deletions
diff --git a/resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad b/resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad
index 72d321d3b1..2af62a06c3 100644
--- a/resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad
+++ b/resources/tools/terraform/1n_nmd/prod_storage/prod-nginx.nomad
@@ -61,8 +61,13 @@ job "prod-nginx" {
canary = 0
}
+ # The reschedule stanza specifies the group's rescheduling strategy. If
+ # specified at the job level, the configuration will apply to all groups
+ # within the job. If the reschedule stanza is present on both the job and the
+ # group, they are merged with the group stanza taking the highest precedence
+ # and then the job.
reschedule {
- delay = "2m"
+ delay = "30s"
delay_function = "constant"
unlimited = true
}
@@ -83,6 +88,15 @@ job "prod-nginx" {
# to 1.
count = 1
+ # The restart stanza configures a tasks's behavior on task failure. Restarts
+ # happen on the client that is running the task.
+ restart {
+ interval = "10m"
+ attempts = 2
+ delay = "15s"
+ mode = "fail"
+ }
+
# All groups in this job should be scheduled on different hosts.
constraint {
operator = "distinct_hosts"
@@ -96,6 +110,12 @@ job "prod-nginx" {
weight = 100
}
+ # The volume stanza allows the group to specify that it requires a given
+ # volume from the cluster.
+ #
+ # For more information and examples on the "volume" stanza, please see
+ # the online documentation at:
+ #
# https://www.nomadproject.io/docs/job-specification/volume
volume "prod-volume1-storage" {
type = "host"