summaryrefslogtreecommitdiffstats
path: root/2configs/tv/consul-server.nix
blob: 5d3fd557922bab91556ed8c3ae0e07affeb0afd0 (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;

    inherit (config.tv.identity) self;
    inherit (self) dc;

    server = true;

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