From 1b51d5ae560ad1e152e20dcad65d085f5b8f58eb Mon Sep 17 00:00:00 2001 From: main Date: Thu, 27 Oct 2022 11:26:19 +0200 Subject: [PATCH] General clean up and a switch back to Docker Signed-off-by: main --- nomad/regions/homelab-1/baikal.tf | 57 ----------- nomad/regions/homelab-1/email.tf | 18 ++-- nomad/regions/homelab-1/gitea.tf | 12 ++- nomad/regions/homelab-1/home-assistant.tf | 25 +++++ nomad/regions/homelab-1/job/baikal.hcl | 96 ------------------- nomad/regions/homelab-1/job/camptules.hcl | 6 +- nomad/regions/homelab-1/job/conduit.hcl | 18 ++-- nomad/regions/homelab-1/job/email.hcl | 12 +-- nomad/regions/homelab-1/job/gitea.hcl | 6 +- .../regions/homelab-1/job/home-assistant.hcl | 66 +++++++++++-- nomad/regions/homelab-1/job/hydra.hcl | 17 ++-- nomad/regions/homelab-1/job/ingress.hcl | 7 +- nomad/regions/homelab-1/job/reicio.hcl | 54 ----------- nomad/regions/homelab-1/job/syncthing.hcl | 6 +- nomad/regions/homelab-1/job/website.hcl | 6 +- nomad/regions/homelab-1/reicio.tf | 11 --- 16 files changed, 140 insertions(+), 277 deletions(-) delete mode 100644 nomad/regions/homelab-1/baikal.tf delete mode 100644 nomad/regions/homelab-1/job/baikal.hcl delete mode 100644 nomad/regions/homelab-1/job/reicio.hcl delete mode 100644 nomad/regions/homelab-1/reicio.tf diff --git a/nomad/regions/homelab-1/baikal.tf b/nomad/regions/homelab-1/baikal.tf deleted file mode 100644 index e2db30f..0000000 --- a/nomad/regions/homelab-1/baikal.tf +++ /dev/null @@ -1,57 +0,0 @@ -resource "nomad_volume" "baikal-specific" { - type = "csi" - plugin_id = "nfs" - volume_id = "baikal-specific" - name = "baikal-specific" - external_id = "baikal-specific" - - capability { - access_mode = "single-node-writer" - attachment_mode = "file-system" - } - - context = { - server = "blowhole.hosts.in.redalder.org" - share = "/var/nfs/baikal/specific" - } - - mount_options { - fs_type = "nfs" - mount_flags = [ "nolock", "hard" ] - } -} - -resource "nomad_volume" "baikal-config" { - type = "csi" - plugin_id = "nfs" - volume_id = "baikal-config" - name = "baikal-config" - external_id = "baikal-config" - - capability { - access_mode = "single-node-writer" - attachment_mode = "file-system" - } - - context = { - server = "blowhole.hosts.in.redalder.org" - share = "/var/nfs/baikal/config" - } - - mount_options { - fs_type = "nfs" - mount_flags = [ "nolock", "hard" ] - } -} - -resource "nomad_job" "baikal" { - jobspec = file("${path.module}/job/baikal.hcl") - - hcl2 { - enabled = true - vars = { - flake_ref = "${var.flake_host}?rev=${var.flake_rev}&ref=${var.flake_ref}" - flake_sha = var.flake_sha - } - } -} diff --git a/nomad/regions/homelab-1/email.tf b/nomad/regions/homelab-1/email.tf index b331e75..38befdb 100644 --- a/nomad/regions/homelab-1/email.tf +++ b/nomad/regions/homelab-1/email.tf @@ -1,7 +1,7 @@ resource "vault_policy" "dovecot-policy" { name = "dovecot-policy" policy = <