summaryrefslogtreecommitdiffstats
path: root/2configs/tv/consul-server.nix
diff options
context:
space:
mode:
Diffstat (limited to '2configs/tv/consul-server.nix')
-rw-r--r--2configs/tv/consul-server.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/2configs/tv/consul-server.nix b/2configs/tv/consul-server.nix
index 1c8dcb884..d10f9ea75 100644
--- a/2configs/tv/consul-server.nix
+++ b/2configs/tv/consul-server.nix
@@ -1,16 +1,15 @@
{ config, ... }:
{
- imports = [ ../../3modules/tv/consul.nix ];
tv.consul = rec {
enable = true;
- inherit (config.tv.identity) self;
+ self = config.krebs.build.host;
inherit (self) dc;
server = true;
- hosts = with config.tv.identity.hosts; [
+ hosts = with config.krebs.hosts; [
# TODO get this list automatically from each host where tv.consul.enable is true
cd
mkdir