job "core-system" { datacenters = ["neptune", "jupiter", "corrin", "bespin"] type = "system" priority = 90 constraint { attribute = "${attr.cpu.arch}" value = "amd64" } update { max_parallel = 1 stagger = "1m" } group "diplonat" { task "diplonat" { driver = "nix2" config { packages = [ "#iptables", "git+https://git.deuxfleurs.fr/Deuxfleurs/diplonat.git?ref=stun&rev=21ab77b8288630c5f39a30b098c6a3888df622a1" ] command = "diplonat" } user = "root" restart { interval = "30m" attempts = 2 delay = "15s" mode = "delay" } template { data = "{{ key \"secrets/consul/consul-ca.crt\" }}" destination = "etc/diplonat/consul-ca.crt" } template { data = "{{ key \"secrets/consul/consul-client.crt\" }}" destination = "etc/diplonat/consul-client.crt" } template { data = "{{ key \"secrets/consul/consul-client.key\" }}" destination = "etc/diplonat/consul-client.key" } template { data = <