diff options
author | tv <tv@krebsco.de> | 2015-07-27 02:02:34 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-07-27 02:02:34 +0200 |
commit | 869eeb1dc1d3bfeddf67f882e0853b15e63dceb3 (patch) | |
tree | fa6bf616e54422468ef7f58c290a710b0710b9b9 /tv/configs/consul-server.nix | |
parent | b9df7908fc96c6e809c3f22bfca50d8703ce12a1 (diff) |
* tv -> tv *
Diffstat (limited to 'tv/configs/consul-server.nix')
-rw-r--r-- | tv/configs/consul-server.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tv/configs/consul-server.nix b/tv/configs/consul-server.nix new file mode 100644 index 0000000..d10f9ea --- /dev/null +++ b/tv/configs/consul-server.nix @@ -0,0 +1,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 + ]; + }; +} |