From da78f3671e2bc532ec64069516fac0ff885c4d7b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 4 Jan 2023 10:06:06 +0100 Subject: staging: deploy things on bespin --- cluster/staging/app/core/deploy/core-service.hcl | 2 +- cluster/staging/app/core/deploy/core-system.hcl | 2 +- cluster/staging/app/directory/deploy/directory.hcl | 2 +- .../staging/app/drone-ci/deploy/bad-runner-vm.hcl | 48 ------------ .../staging/app/drone-ci/deploy/runner-docker.hcl | 91 ---------------------- cluster/staging/app/garage/deploy/garage.hcl | 2 +- .../app/telemetry/deploy/telemetry-service.hcl | 2 +- .../app/telemetry/deploy/telemetry-system.hcl | 2 +- 8 files changed, 6 insertions(+), 145 deletions(-) delete mode 100644 cluster/staging/app/drone-ci/deploy/bad-runner-vm.hcl delete mode 100644 cluster/staging/app/drone-ci/deploy/runner-docker.hcl (limited to 'cluster/staging/app') diff --git a/cluster/staging/app/core/deploy/core-service.hcl b/cluster/staging/app/core/deploy/core-service.hcl index 72f6f0b..5994d89 100644 --- a/cluster/staging/app/core/deploy/core-service.hcl +++ b/cluster/staging/app/core/deploy/core-service.hcl @@ -1,5 +1,5 @@ job "core-service" { - datacenters = ["neptune", "jupiter", "corrin"] + datacenters = ["neptune", "jupiter", "corrin", "bespin"] type = "service" priority = 90 diff --git a/cluster/staging/app/core/deploy/core-system.hcl b/cluster/staging/app/core/deploy/core-system.hcl index 5cdffa7..4d6e503 100644 --- a/cluster/staging/app/core/deploy/core-system.hcl +++ b/cluster/staging/app/core/deploy/core-system.hcl @@ -1,5 +1,5 @@ job "core-system" { - datacenters = ["neptune", "jupiter", "corrin"] + datacenters = ["neptune", "jupiter", "corrin", "bespin"] type = "system" priority = 90 diff --git a/cluster/staging/app/directory/deploy/directory.hcl b/cluster/staging/app/directory/deploy/directory.hcl index 1938ec5..c88d47e 100644 --- a/cluster/staging/app/directory/deploy/directory.hcl +++ b/cluster/staging/app/directory/deploy/directory.hcl @@ -1,5 +1,5 @@ job "directory" { - datacenters = ["neptune", "jupiter"] + datacenters = ["neptune", "jupiter", "corrin", "bespin"] type = "service" priority = 90 diff --git a/cluster/staging/app/drone-ci/deploy/bad-runner-vm.hcl b/cluster/staging/app/drone-ci/deploy/bad-runner-vm.hcl deleted file mode 100644 index 7c3a7e2..0000000 --- a/cluster/staging/app/drone-ci/deploy/bad-runner-vm.hcl +++ /dev/null @@ -1,48 +0,0 @@ -job "drone-runner" { - datacenters = ["neptune"] - type = "system" - - group "runner-vm" { - network { - port "ssh" { - static = 22544 - } - } - - task "drone-runner-vm" { - driver = "qemu" - - config { - image_path = "local/drone-runner.qcow2" - accelerator = "kvm" - args = [ - "-drive", "index=1,file=fat:rw:/var/lib/nomad/alloc/${NOMAD_ALLOC_ID}/${NOMAD_TASK_NAME}/secrets,format=raw,media=disk", - "-device", "e1000,netdev=user.0", - "-netdev", "user,id=user.0,hostfwd=tcp::${NOMAD_PORT_ssh}-:22", - "-smp", "2", - ] - port_map { - ssh = 22 - } - } - - artifact { - source = "https://alex.web.deuxfleurs.fr/drone-runner.qcow2.zst" - destination = "local/drone-runner.qcow2" - mode = "file" - } - - template { - data = <