From b4e82e37e4e1718dfffa70cd0c6222c1b34fc997 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 20 Apr 2023 15:13:13 +0200 Subject: diplonat with fixed iptables thing --- cluster/staging/app/core/deploy/core-service.hcl | 62 --------- cluster/staging/app/core/deploy/core-system.hcl | 164 ----------------------- cluster/staging/app/core/deploy/d53.hcl | 62 +++++++++ cluster/staging/app/core/deploy/diplonat.hcl | 75 +++++++++++ cluster/staging/app/core/deploy/tricot.hcl | 108 +++++++++++++++ 5 files changed, 245 insertions(+), 226 deletions(-) delete mode 100644 cluster/staging/app/core/deploy/core-service.hcl delete mode 100644 cluster/staging/app/core/deploy/core-system.hcl create mode 100644 cluster/staging/app/core/deploy/d53.hcl create mode 100644 cluster/staging/app/core/deploy/diplonat.hcl create mode 100644 cluster/staging/app/core/deploy/tricot.hcl diff --git a/cluster/staging/app/core/deploy/core-service.hcl b/cluster/staging/app/core/deploy/core-service.hcl deleted file mode 100644 index bf835c7..0000000 --- a/cluster/staging/app/core/deploy/core-service.hcl +++ /dev/null @@ -1,62 +0,0 @@ -job "core-service" { - datacenters = ["neptune", "jupiter", "corrin", "bespin"] - type = "service" - priority = 90 - - group "D53" { - count = 1 - - task "d53" { - driver = "nix2" - - config { - packages = [ - "git+https://git.deuxfleurs.fr/lx/D53.git?ref=diplonat-autodiscovery&rev=d906a6ebb5d977f44340b157a520477849ced161" - ] - command = "d53" - } - - resources { - cpu = 100 - memory = 100 - } - - restart { - interval = "3m" - attempts = 10 - delay = "15s" - mode = "delay" - } - - template { - data = "{{ key \"secrets/consul/consul-ca.crt\" }}" - destination = "etc/tricot/consul-ca.crt" - } - - template { - data = "{{ key \"secrets/consul/consul-client.crt\" }}" - destination = "etc/tricot/consul-client.crt" - } - - template { - data = "{{ key \"secrets/consul/consul-client.key\" }}" - destination = "etc/tricot/consul-client.key" - } - - template { - data = <