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

{
  imports = [ ../../tv/consul ];
  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
    ];
  };
}