summaryrefslogtreecommitdiffstats
path: root/2configs/tv/consul-server.nix
blob: 1c8dcb884c22b9a6c152c7b439f20b657ce1f3bb (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 = [ ../../3modules/tv/consul.nix ];
  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
    ];
  };
}