summaryrefslogtreecommitdiffstats
path: root/tv/configs/consul-server.nix
blob: d10f9ea75a14d944a1ad052ed57f81fc60cb1216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, ... }:

{
  tv.consul = rec {
    enable = true;

    self = config.krebs.build.host;
    inherit (self) dc;

    server = true;

    hosts = with config.krebs.hosts; [
      # TODO get this list automatically from each host where tv.consul.enable is true
      cd
      mkdir
      nomic
      rmdir
      #wu
    ];
  };
}