cluster/services/consul: implement runConsul incantation

This commit is contained in:
Max Headroom 2024-08-12 01:38:27 +02:00
parent 9dcf543b49
commit d31d9f9fec

View file

@ -10,6 +10,13 @@ let
in
{
system.extraIncantations = {
runConsul = i: script: i.execShellWith [ config.services.consul.package ] ''
export CONSUL_HTTP_ADDR='${config.links.consulAgent.tuple}'
${script}
'';
};
links.consulAgent.protocol = "http";
services.consul = {