From 8846421cc44fc958e08a1eff2a12ebc54178731b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 8 Dec 2021 11:41:07 +0100 Subject: [PATCH] Deploy core on neptune as well --- app/core/deploy/core.hcl | 72 +++++++++++++-------------- app/garage-staging/config/garage.toml | 2 +- app/garage-staging/deploy/garage.hcl | 26 ++++++++-- 3 files changed, 60 insertions(+), 40 deletions(-) diff --git a/app/core/deploy/core.hcl b/app/core/deploy/core.hcl index 39b4a17..f04f864 100644 --- a/app/core/deploy/core.hcl +++ b/app/core/deploy/core.hcl @@ -1,51 +1,51 @@ job "core" { - datacenters = ["dc1"] - type = "system" - priority = 90 + datacenters = ["dc1", "neptune"] + type = "system" + priority = 90 - constraint { - attribute = "${attr.cpu.arch}" - value = "amd64" - } + constraint { + attribute = "${attr.cpu.arch}" + value = "amd64" + } - update { - max_parallel = 1 - stagger = "1m" - } + update { + max_parallel = 1 + stagger = "1m" + } - group "network" { - task "diplonat" { - driver = "docker" + group "network" { + task "diplonat" { + driver = "docker" - config { - image = "darkgallium/amd64_diplonat:v3" - network_mode = "host" - readonly_rootfs = true - privileged = true - } + config { + image = "darkgallium/amd64_diplonat:v3" + network_mode = "host" + readonly_rootfs = true + privileged = true + } - restart { - interval = "30m" - attempts = 2 - delay = "15s" - mode = "delay" - } + restart { + interval = "30m" + attempts = 2 + delay = "15s" + mode = "delay" + } - template { - data = <