stockholm/tv/2configs/consul-server.nix

22 lines
335 B
Nix
Raw Normal View History

2015-07-11 14:55:22 +00:00
{ config, ... }:
{
tv.consul = rec {
enable = true;
self = config.krebs.build.host;
2015-07-11 14:55:22 +00:00
inherit (self) dc;
server = true;
2015-07-24 19:15:18 +00:00
hosts = with config.krebs.hosts; [
2015-07-11 14:55:22 +00:00
# TODO get this list automatically from each host where tv.consul.enable is true
cd
mkdir
nomic
rmdir
#wu
];
};
}