cluster/services/irc: register with consul
This commit is contained in:
parent
d164fa4536
commit
363c54b0f6
1 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ cluster, config, pkgs, tools, ... }:
|
{ cluster, config, lib, pkgs, tools, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (tools.meta) adminEmail;
|
inherit (tools.meta) adminEmail;
|
||||||
|
@ -106,4 +106,16 @@ in {
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
consul.services.ngircd = {
|
||||||
|
definition.service = {
|
||||||
|
name = "irc";
|
||||||
|
address = linkSecure.ipv4;
|
||||||
|
port = linkSecure.port;
|
||||||
|
checks = lib.singleton {
|
||||||
|
interval = "60s";
|
||||||
|
tcp = link.tuple;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue