From d1b475d6516b09083cc4eab83488713511d40cb5 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 20 May 2024 11:21:45 +0200 Subject: [PATCH] fix: add cluster consraint to prowalar and tt-rss --- nomad-job/torrent_automation.nomad.hcl | 6 +++++- nomad-job/tt-rss.nomad | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nomad-job/torrent_automation.nomad.hcl b/nomad-job/torrent_automation.nomad.hcl index 4a3dc77..b811f2b 100644 --- a/nomad-job/torrent_automation.nomad.hcl +++ b/nomad-job/torrent_automation.nomad.hcl @@ -9,7 +9,11 @@ job "torrent_automation" { attribute = "${attr.cpu.arch}" value = "amd64" } - + constraint { + attribute = "${node.class}" + operator = "set_contains" + value = "cluster" + } group "prowlarr"{ network { mode = "host" diff --git a/nomad-job/tt-rss.nomad b/nomad-job/tt-rss.nomad index 4ace685..939c242 100644 --- a/nomad-job/tt-rss.nomad +++ b/nomad-job/tt-rss.nomad @@ -7,7 +7,11 @@ job "tt-rss" { attribute = "${attr.cpu.arch}" value = "amd64" } - + constraint { + attribute = "${node.class}" + operator = "set_contains" + value = "cluster" + } group "ttrss" { ephemeral_disk {