From afb6afff1d0f81d8a0dcfd94fa8e46a849bb094f Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 27 Jul 2015 02:02:34 +0200 Subject: * tv -> tv * --- tv/configs/consul-server.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tv/configs/consul-server.nix (limited to 'tv/configs/consul-server.nix') diff --git a/tv/configs/consul-server.nix b/tv/configs/consul-server.nix new file mode 100644 index 000000000..d10f9ea75 --- /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 + ]; + }; +} -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/ab200000.lock: No such file or directory (2)