From bc18f643736270d09f177f00820c03969017e67d Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 21 Apr 2022 17:23:58 -0400 Subject: [PATCH] pin to host macmini --- templates/nomad_jobs/grafana.hcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/nomad_jobs/grafana.hcl b/templates/nomad_jobs/grafana.hcl index 85a3f4d..41477fd 100644 --- a/templates/nomad_jobs/grafana.hcl +++ b/templates/nomad_jobs/grafana.hcl @@ -3,6 +3,12 @@ job "grafana" { datacenters = ["{{ datacenter_name }}"] type = "service" + constraint { + attribute = "${node.unique.name}" + operator = "regexp" + value = "macmini" + } + update { max_parallel = 1 health_check = "checks"