2015-07-11 14:55:22 +00:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
tv.consul = rec {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
inherit (config.tv.identity) self;
|
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|