cluster/services/consul: use separate node group for consul-ready

This commit is contained in:
Max Headroom 2024-07-17 23:22:02 +02:00
parent c922615666
commit 03bfb51682

View file

@ -11,12 +11,17 @@ in
}; };
}); });
services.consul = { services.consul = {
nodes.agent = [ "checkmate" "grail" "thunderskin" "VEGAS" "prophet" ]; nodes = {
nixos.agent = [ agent = [ "checkmate" "grail" "thunderskin" "VEGAS" "prophet" ];
./agent.nix ready = config.services.consul.nodes.agent;
./remote-api.nix };
./ready.nix nixos = {
]; agent = [
./agent.nix
./remote-api.nix
];
ready = ./ready.nix;
};
}; };
dns.records."consul-remote.internal".consulService = "consul-remote"; dns.records."consul-remote.internal".consulService = "consul-remote";