job "core:bottin" { datacenters = ["orion", "neptune", "scorpio"] type = "system" priority = 90 update { max_parallel = 1 stagger = "1m" } group "bottin" { constraint { distinct_property = "${meta.site}" value = "1" } network { port "ldap_port" { static = 389 to = 389 } } task "bottin" { driver = "docker" config { image = "dxflrs/bottin:7h18i30cckckaahv87d3c86pn4a7q41z" network_mode = "host" readonly_rootfs = true ports = [ "ldap_port" ] volumes = [ "secrets/config.json:/config.json", "secrets:/etc/bottin", ] } restart { interval = "5m" attempts = 10 delay = "15s" mode = "delay" } resources { memory = 100 memory_max = 200 } template { data = file("../config/bottin/config.json.tpl") destination = "secrets/config.json" } template { data = "{{ key \"secrets/consul/consul.crt\" }}" destination = "secrets/consul.crt" } template { data = "{{ key \"secrets/consul/consul-client.crt\" }}" destination = "secrets/consul-client.crt" } template { data = "{{ key \"secrets/consul/consul-client.key\" }}" destination = "secrets/consul-client.key" } template { data = <