job "directory" { datacenters = ["neptune", "jupiter", "corrin", "bespin"] type = "service" priority = 90 constraint { attribute = "${attr.cpu.arch}" value = "amd64" } group "bottin" { count = 1 network { port "ldap_port" { static = 389 } } task "bottin" { driver = "nix2" config { packages = [ "git+https://git.deuxfleurs.fr/Deuxfleurs/bottin.git?ref=main&rev=9cab98d2cee386ece54b000bbdf2346da8b55eed" ] command = "bottin" } user = "root" # needed to bind port 389 resources { memory = 100 } template { data = file("../config/bottin/config.json.tpl") destination = "config.json" } template { data = "{{ key \"secrets/consul/consul-ca.crt\" }}" destination = "etc/bottin/consul-ca.crt" } template { data = "{{ key \"secrets/consul/consul-client.crt\" }}" destination = "etc/bottin/consul-client.crt" } template { data = "{{ key \"secrets/consul/consul-client.key\" }}" destination = "etc/bottin/consul-client.key" } template { data = <