diff options
author | pmikus <pmikus@cisco.com> | 2021-02-04 13:03:12 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-02-04 14:25:53 +0000 |
commit | cfceaf325c290fc3a07f6c7cbefc1fc4af6dde1e (patch) | |
tree | ab955c24748e3e945f8876e96a996d9891ee6e14 /terraform-ci-infra/1n_nmd/exporter/main.tf | |
parent | 879b31f02fb4df52016d7465e21377121dfbb515 (diff) |
Infra: Move probes under ansible instead of terraform
+ More stable probe handling.
+ Naming cleanup due to errors.
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I3bb1237af20636919f869f2eee53597202d00792
Diffstat (limited to 'terraform-ci-infra/1n_nmd/exporter/main.tf')
-rw-r--r-- | terraform-ci-infra/1n_nmd/exporter/main.tf | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/terraform-ci-infra/1n_nmd/exporter/main.tf b/terraform-ci-infra/1n_nmd/exporter/main.tf deleted file mode 100644 index 35eb95b071..0000000000 --- a/terraform-ci-infra/1n_nmd/exporter/main.tf +++ /dev/null @@ -1,64 +0,0 @@ -locals { - datacenters = join(",", var.nomad_datacenters) - - node_url_amd64 = join("", - [ - "https://github.com", - "/prometheus/node_exporter/releases/download/", - "v${var.node_version}/", - "node_exporter-${var.node_version}.linux-amd64.tar.gz" - ] - ) - node_url_arm64 = join("", - [ - "https://github.com", - "/prometheus/node_exporter/releases/download/", - "v${var.node_version}/", - "node_exporter-${var.node_version}.linux-arm64.tar.gz" - ] - ) - - blackbox_url_amd64 = join("", - [ - "https://github.com", - "/prometheus/blackbox_exporter/releases/download/", - "v${var.blackbox_version}/", - "blackbox_exporter-${var.blackbox_version}.linux-amd64.tar.gz" - ] - ) - blackbox_url_arm64 = join("", - [ - "https://github.com", - "/prometheus/blackbox_exporter/releases/download/", - "v${var.blackbox_version}/", - "blackbox_exporter-${var.blackbox_version}.linux-arm64.tar.gz" - ] - ) -} - -data "template_file" "nomad_job_exporter" { - template = file("${path.module}/conf/nomad/exporter.hcl") - vars = { - datacenters = local.datacenters - job_name = var.exporter_job_name - use_canary = var.exporter_use_canary - node_url_amd64 = local.node_url_amd64 - node_url_arm64 = local.node_url_arm64 - node_version = var.node_version - node_service_name = var.node_service_name - node_port = var.node_port - blackbox_url_amd64 = local.blackbox_url_amd64 - blackbox_url_arm64 = local.blackbox_url_arm64 - blackbox_version = var.blackbox_version - blackbox_service_name = var.blackbox_service_name - blackbox_port = var.blackbox_port - cadvisor_image = var.cadvisor_image - cadvisor_service_name = var.cadvisor_service_name - cadvisor_port = var.cadvisor_port - } -} - -resource "nomad_job" "nomad_job_exporter" { - jobspec = data.template_file.nomad_job_exporter.rendered - detach = false -}
\ No newline at end of file |