From 9ad7e7b1395685b2d6a12de524ecc07113b45b79 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 6 Oct 2024 11:19:16 +0200 Subject: [PATCH] feat(tenancy): tag machines accordingly to their tenancy @lix for Lix machines. @floral for Floral machines. Signed-off-by: Raito Bezarius --- flake.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index e217082..bbb5a55 100644 --- a/flake.nix +++ b/flake.nix @@ -124,8 +124,12 @@ ]; # Tag all machines which have local boot as local bootables. - deployment.tags = lib.mkIf (config.bagel.baremetal.builders.enable -> !config.bagel.baremetal.builders.netboot) - [ "localboot" ]; + deployment.tags = lib.mkMerge [ + [ "floral" ] + (lib.mkIf (config.bagel.baremetal.builders.enable -> !config.bagel.baremetal.builders.netboot) + [ "localboot" ] + ) + ]; bagel.monitoring.grafana-agent.tenant = "floral"; bagel.secrets.tenant = "floral"; @@ -153,8 +157,7 @@ # Tag all machines which have local boot as local bootables. # Lix has no netbootable machine. - deployment.tags = [ "localboot" ]; - + deployment.tags = [ "localboot" "lix" ]; bagel.monitoring.grafana-agent.tenant = "lix"; bagel.secrets.tenant = "lix";