From bcc8b334d1961894b54c080f3d58032aacb1a048 Mon Sep 17 00:00:00 2001 From: pmikus Date: Fri, 27 Aug 2021 07:24:38 +0000 Subject: Infra: Minor terraform cleanup Signed-off-by: pmikus Change-Id: I1f6c9b2f9e3ac607fac76b12100992d901820e38 --- .../1n_nmd/prometheus/conf/nomad/prometheus.hcl | 5 +++++ fdio.infra.terraform/1n_nmd/prometheus/providers.tf | 13 +++++++++++++ fdio.infra.terraform/1n_nmd/prometheus/versions.tf | 13 ------------- 3 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 fdio.infra.terraform/1n_nmd/prometheus/providers.tf delete mode 100644 fdio.infra.terraform/1n_nmd/prometheus/versions.tf (limited to 'fdio.infra.terraform/1n_nmd/prometheus') diff --git a/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl b/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl index 4451d72f7a..368a361184 100644 --- a/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl +++ b/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl @@ -139,6 +139,11 @@ job "${job_name}" { value = "arm64" } + constraint { + attribute = "$${node.class}" + value = "builder" + } + # The "task" stanza creates an individual unit of work, such as a Docker # container, web application, or batch processing. # diff --git a/fdio.infra.terraform/1n_nmd/prometheus/providers.tf b/fdio.infra.terraform/1n_nmd/prometheus/providers.tf new file mode 100644 index 0000000000..1399201d21 --- /dev/null +++ b/fdio.infra.terraform/1n_nmd/prometheus/providers.tf @@ -0,0 +1,13 @@ +terraform { + required_providers { + nomad = { + source = "hashicorp/nomad" + version = "~> 1.4.9" + } + template = { + source = "hashicorp/template" + version = "~> 2.1.2" + } + } + required_version = ">= 1.0.3" +} diff --git a/fdio.infra.terraform/1n_nmd/prometheus/versions.tf b/fdio.infra.terraform/1n_nmd/prometheus/versions.tf deleted file mode 100644 index 960bd4bba6..0000000000 --- a/fdio.infra.terraform/1n_nmd/prometheus/versions.tf +++ /dev/null @@ -1,13 +0,0 @@ -terraform { - required_providers { - nomad = { - source = "hashicorp/nomad" - version = "~> 1.4.9" - } - template = { - source = "hashicorp/template" - version = "~> 2.1.2" - } - } - required_version = ">= 0.13" -} -- cgit 1.2.3-korg