feat(tenancy): tag machines accordingly to their tenancy

@lix for Lix machines.
@floral for Floral machines.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-10-06 11:19:16 +02:00
parent 96f5d45ff3
commit 9ad7e7b139

View file

@ -124,8 +124,12 @@
]; ];
# Tag all machines which have local boot as local bootables. # Tag all machines which have local boot as local bootables.
deployment.tags = lib.mkIf (config.bagel.baremetal.builders.enable -> !config.bagel.baremetal.builders.netboot) deployment.tags = lib.mkMerge [
[ "localboot" ]; [ "floral" ]
(lib.mkIf (config.bagel.baremetal.builders.enable -> !config.bagel.baremetal.builders.netboot)
[ "localboot" ]
)
];
bagel.monitoring.grafana-agent.tenant = "floral"; bagel.monitoring.grafana-agent.tenant = "floral";
bagel.secrets.tenant = "floral"; bagel.secrets.tenant = "floral";
@ -153,8 +157,7 @@
# Tag all machines which have local boot as local bootables. # Tag all machines which have local boot as local bootables.
# Lix has no netbootable machine. # Lix has no netbootable machine.
deployment.tags = [ "localboot" ]; deployment.tags = [ "localboot" "lix" ];
bagel.monitoring.grafana-agent.tenant = "lix"; bagel.monitoring.grafana-agent.tenant = "lix";
bagel.secrets.tenant = "lix"; bagel.secrets.tenant = "lix";