cluster/services/consul: use separate node group for consul-ready
This commit is contained in:
parent
c922615666
commit
03bfb51682
1 changed files with 11 additions and 6 deletions
|
@ -11,12 +11,17 @@ in
|
|||
};
|
||||
});
|
||||
services.consul = {
|
||||
nodes.agent = [ "checkmate" "grail" "thunderskin" "VEGAS" "prophet" ];
|
||||
nixos.agent = [
|
||||
nodes = {
|
||||
agent = [ "checkmate" "grail" "thunderskin" "VEGAS" "prophet" ];
|
||||
ready = config.services.consul.nodes.agent;
|
||||
};
|
||||
nixos = {
|
||||
agent = [
|
||||
./agent.nix
|
||||
./remote-api.nix
|
||||
./ready.nix
|
||||
];
|
||||
ready = ./ready.nix;
|
||||
};
|
||||
};
|
||||
|
||||
dns.records."consul-remote.internal".consulService = "consul-remote";
|
||||
|
|
Loading…
Reference in a new issue