X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=terraform-ci-infra%2F1n_nmd%2Fnginx%2Fconf%2Fnomad%2Fnginx.hcl;h=0775a498dac05a0fdd3b0fe43b79a4a38fe626c5;hp=3c4761c5674f20a38840f20c5613fc9c5f5adef7;hb=9481aad815189d6251d36c11e3f901f9179dab40;hpb=f7825e80ea0688fa337b8a36086df2e577ca6101;ds=sidebyside 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 3c4761c567..0775a498da 100644 --- a/terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl +++ b/terraform-ci-infra/1n_nmd/nginx/conf/nomad/nginx.hcl @@ -98,11 +98,14 @@ job "${job_name}" { # The restart stanza configures a tasks's behavior on task failure. Restarts # happen on the client that is running the task. + # + # https://www.nomadproject.io/docs/job-specification/restart + # restart { - interval = "10m" - attempts = 2 + interval = "30m" + attempts = 40 delay = "15s" - mode = "fail" + mode = "delay" } # The "task" stanza creates an individual unit of work, such as a Docker @@ -124,7 +127,6 @@ job "${job_name}" { # documentation for more information. config { image = "nginx:stable" - dns_servers = [ "$${attr.unique.network.ip-address}" ] port_map { https = 443 } @@ -150,10 +152,9 @@ job "${job_name}" { template { data = <