Colmena: Add deployment tags and block deploy all

This commit is contained in:
Moritz 'e1mo' Fromm 2023-05-20 00:48:06 +02:00
parent 6210804f59
commit 17ed07993d
No known key found for this signature in database
GPG key ID: 1D5D79A439E787F1

View file

@ -51,11 +51,13 @@
}; };
colmena = { colmena = {
meta.allowApplyAll = false;
meta.nixpkgs = import nixpkgs { meta.nixpkgs = import nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
}; };
defaults = { name, ... }: { defaults = { name, ... }: {
deployment = { deployment = {
tags = if name == "shirley" then [ "prod" ] else [ "dev" ];
# TODO: It'd probably be nice to derive that from the host-configured fqdn # TODO: It'd probably be nice to derive that from the host-configured fqdn
targetHost = "${name}.net.chaos.jetzt"; targetHost = "${name}.net.chaos.jetzt";
targetUser = null; targetUser = null;