And of course, one second after hitting "Send", I find a
mistake. Poster's curse.


#!/usr/bin/execlineb -P
with-contenv
backtick -n BIND
{
   pipeline { import -u HOSTNAME getent hosts ${HOSTNAME} }
   cut -f1 -d" "
}
s6-setuidgid consul
import -u BIND  # forgot this one (backtick doesn't substitute anymore)
consul agent
    -config-dir /etc/consul.d/bootstrap
    -bind ${BIND}
-----

--
 Laurent

Reply via email to