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 = {
|
services.consul = {
|
||||||
nodes.agent = [ "checkmate" "grail" "thunderskin" "VEGAS" "prophet" ];
|
nodes = {
|
||||||
nixos.agent = [
|
agent = [ "checkmate" "grail" "thunderskin" "VEGAS" "prophet" ];
|
||||||
|
ready = config.services.consul.nodes.agent;
|
||||||
|
};
|
||||||
|
nixos = {
|
||||||
|
agent = [
|
||||||
./agent.nix
|
./agent.nix
|
||||||
./remote-api.nix
|
./remote-api.nix
|
||||||
./ready.nix
|
|
||||||
];
|
];
|
||||||
|
ready = ./ready.nix;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dns.records."consul-remote.internal".consulService = "consul-remote";
|
dns.records."consul-remote.internal".consulService = "consul-remote";
|
||||||
|
|
Loading…
Reference in a new issue