From bab5403a4e9d8644d8ae95952c687539c38cc7ba Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 28 Feb 2026 21:55:49 -0500 Subject: [PATCH 1/2] ansible/host_vars: add nomad metadata for builders this will allow setting affinities to have other jobs prefer being on/off builders --- ansible/host_vars/a-fsn-de.m.voidlinux.org.yml | 3 +++ ansible/host_vars/a-hel-fi.m.voidlinux.org.yml | 8 ++++++++ ansible/host_vars/b-fsn-de.m.voidlinux.org.yml | 3 +++ 3 files changed, 14 insertions(+) diff --git a/ansible/host_vars/a-fsn-de.m.voidlinux.org.yml b/ansible/host_vars/a-fsn-de.m.voidlinux.org.yml index a362a9a6..652bf473 100644 --- a/ansible/host_vars/a-fsn-de.m.voidlinux.org.yml +++ b/ansible/host_vars/a-fsn-de.m.voidlinux.org.yml @@ -26,6 +26,9 @@ buildworker_archs: - armv7l - armv6l +nomad_meta: + builder: "true" + nomad_host_volumes: - name: void-packages path: /data/void-packages diff --git a/ansible/host_vars/a-hel-fi.m.voidlinux.org.yml b/ansible/host_vars/a-hel-fi.m.voidlinux.org.yml index 315a44f5..e5d06bf2 100644 --- a/ansible/host_vars/a-hel-fi.m.voidlinux.org.yml +++ b/ansible/host_vars/a-hel-fi.m.voidlinux.org.yml @@ -15,6 +15,14 @@ network_static_interfaces: sshd_AllowGroups: - build-ops +buildworker_archs: + - x86_64-musl + - armv7l-musl + - armv6l-musl + +nomad_meta: + builder: "true" + nomad_host_volumes: - name: terrastate path: /nomad/terrastate diff --git a/ansible/host_vars/b-fsn-de.m.voidlinux.org.yml b/ansible/host_vars/b-fsn-de.m.voidlinux.org.yml index 7f0247cb..47cda6fa 100644 --- a/ansible/host_vars/b-fsn-de.m.voidlinux.org.yml +++ b/ansible/host_vars/b-fsn-de.m.voidlinux.org.yml @@ -6,6 +6,9 @@ buildworker_archs: - aarch64 - aarch64-musl +nomad_meta: + builder: "true" + nomad_host_volumes: - name: ccache path: /hostdir/ccache From dc40df231568cebdaf2578136244ee876c102634 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 28 Feb 2026 21:56:40 -0500 Subject: [PATCH 2/2] services/nomad/monitoring/repo_exporter: update to 0.1.2, keep off of builders --- services/nomad/monitoring/repo_exporter.nomad | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/nomad/monitoring/repo_exporter.nomad b/services/nomad/monitoring/repo_exporter.nomad index bb4471fc..5b5ffe55 100644 --- a/services/nomad/monitoring/repo_exporter.nomad +++ b/services/nomad/monitoring/repo_exporter.nomad @@ -3,6 +3,12 @@ job "repo-exporter" { namespace = "monitoring" datacenters = ["VOID"] + affinity { + attribute = "${meta.builder}" + value = "true" + weight = -100 + } + group "exporter" { network { mode = "bridge" @@ -28,7 +34,7 @@ job "repo-exporter" { driver = "docker" config { - image = "ghcr.io/void-linux/repo-exporter:v0.1.1" + image = "ghcr.io/void-linux/repo-exporter:v0.1.2" } resources {