diff --git a/templates/nomad_jobs/changedetection.hcl b/templates/nomad_jobs/changedetection.hcl index 2c4eec1..fb55ee2 100644 --- a/templates/nomad_jobs/changedetection.hcl +++ b/templates/nomad_jobs/changedetection.hcl @@ -47,9 +47,7 @@ job "changedetection" { config { image = "dgtlmoon/changedetection.io:latest" hostname = "${NOMAD_JOB_NAME}" - volumes = [ - "${meta.nfsStorageRoot}/pi-cluster/changedetection:/datastore" - ] + volumes = [ "${meta.nfsStorageRoot}/pi-cluster/changedetection:/datastore" ] ports = ["webUI"] } // docker config diff --git a/templates/nomad_jobs/influxdb.hcl b/templates/nomad_jobs/influxdb.hcl index cd373f7..05aa7df 100644 --- a/templates/nomad_jobs/influxdb.hcl +++ b/templates/nomad_jobs/influxdb.hcl @@ -42,7 +42,12 @@ job "influxdb" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.restoreCommand}" - args = ["${meta.restoreCommand1}", "${meta.restoreCommand2}", "${NOMAD_JOB_NAME}", "${meta.restoreCommand3}"] + args = [ + "${meta.restoreCommand1}", + "${meta.restoreCommand2}", + "${NOMAD_JOB_NAME}", + "${meta.restoreCommand3}" + ] } lifecycle { @@ -102,7 +107,15 @@ job "influxdb" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.backupCommand}" - args = ["${meta.backupAllocArg1}", "${meta.backupAllocArg2}", "${meta.backupAllocArg3}", "${meta.backupAllocArg4}", "${meta.backupAllocArg5}", "${NOMAD_JOB_NAME}", "${meta.backupAllocArg6}"] + args = [ + "${meta.backupAllocArg1}", + "${meta.backupAllocArg2}", + "${meta.backupAllocArg3}", + "${meta.backupAllocArg4}", + "${meta.backupAllocArg5}", + "${NOMAD_JOB_NAME}", + "${meta.backupAllocArg6}" + ] } lifecycle { hook = "poststop" diff --git a/templates/nomad_jobs/lidarr.hcl b/templates/nomad_jobs/lidarr.hcl index ca2cd42..84ac28a 100644 --- a/templates/nomad_jobs/lidarr.hcl +++ b/templates/nomad_jobs/lidarr.hcl @@ -43,7 +43,12 @@ job "lidarr" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.restoreCommand}" - args = ["${meta.restoreCommand1}", "${meta.restoreCommand2}", "${NOMAD_JOB_NAME}", "${meta.restoreCommand3}"] + args = [ + "${meta.restoreCommand1}", + "${meta.restoreCommand2}", + "${NOMAD_JOB_NAME}", + "${meta.restoreCommand3}" + ] } lifecycle { @@ -111,7 +116,15 @@ job "lidarr" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.backupCommand}" - args = ["${meta.backupAllocArg1}", "${meta.backupAllocArg2}", "${meta.backupAllocArg3}", "${meta.backupAllocArg4}", "${meta.backupAllocArg5}", "${NOMAD_JOB_NAME}", "${meta.backupAllocArg6}"] + args = [ + "${meta.backupAllocArg1}", + "${meta.backupAllocArg2}", + "${meta.backupAllocArg3}", + "${meta.backupAllocArg4}", + "${meta.backupAllocArg5}", + "${NOMAD_JOB_NAME}", + "${meta.backupAllocArg6}" + ] } lifecycle { hook = "poststop" diff --git a/templates/nomad_jobs/overseerr.hcl b/templates/nomad_jobs/overseerr.hcl index 85b60a2..b4b73c8 100644 --- a/templates/nomad_jobs/overseerr.hcl +++ b/templates/nomad_jobs/overseerr.hcl @@ -48,9 +48,7 @@ job "overseerr" { image = "ghcr.io/linuxserver/overseerr" hostname = "${NOMAD_JOB_NAME}" ports = ["overseerr"] - volumes = [ - "${meta.nfsStorageRoot}/pi-cluster/overseerr:/config" - ] + volumes = [ "${meta.nfsStorageRoot}/pi-cluster/overseerr:/config" ] } // docker config service { diff --git a/templates/nomad_jobs/prowlarr.hcl b/templates/nomad_jobs/prowlarr.hcl index 448dbf6..62236e6 100644 --- a/templates/nomad_jobs/prowlarr.hcl +++ b/templates/nomad_jobs/prowlarr.hcl @@ -44,7 +44,12 @@ job "prowlarr" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.restoreCommand}" - args = ["${meta.restoreCommand1}", "${meta.restoreCommand2}", "${NOMAD_JOB_NAME}", "${meta.restoreCommand3}"] + args = [ + "${meta.restoreCommand1}", + "${meta.restoreCommand2}", + "${NOMAD_JOB_NAME}", + "${meta.restoreCommand3}" + ] } lifecycle { @@ -114,7 +119,15 @@ job "prowlarr" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.backupCommand}" - args = ["${meta.backupAllocArg1}", "${meta.backupAllocArg2}", "${meta.backupAllocArg3}", "${meta.backupAllocArg4}", "${meta.backupAllocArg5}", "${NOMAD_JOB_NAME}", "${meta.backupAllocArg6}"] + args = [ + "${meta.backupAllocArg1}", + "${meta.backupAllocArg2}", + "${meta.backupAllocArg3}", + "${meta.backupAllocArg4}", + "${meta.backupAllocArg5}", + "${NOMAD_JOB_NAME}", + "${meta.backupAllocArg6}" + ] } lifecycle { hook = "poststop" diff --git a/templates/nomad_jobs/radarr.hcl b/templates/nomad_jobs/radarr.hcl index 0475d01..5f2231e 100644 --- a/templates/nomad_jobs/radarr.hcl +++ b/templates/nomad_jobs/radarr.hcl @@ -41,7 +41,12 @@ job "radarr" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.restoreCommand}" - args = ["${meta.restoreCommand1}", "${meta.restoreCommand2}", "${NOMAD_JOB_NAME}", "${meta.restoreCommand3}"] + args = [ + "${meta.restoreCommand1}", + "${meta.restoreCommand2}", + "${NOMAD_JOB_NAME}", + "${meta.restoreCommand3}" + ] } lifecycle { @@ -111,7 +116,15 @@ job "radarr" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.backupCommand}" - args = ["${meta.backupAllocArg1}", "${meta.backupAllocArg2}", "${meta.backupAllocArg3}", "${meta.backupAllocArg4}", "${meta.backupAllocArg5}", "${NOMAD_JOB_NAME}", "${meta.backupAllocArg6}"] + args = [ + "${meta.backupAllocArg1}", + "${meta.backupAllocArg2}", + "${meta.backupAllocArg3}", + "${meta.backupAllocArg4}", + "${meta.backupAllocArg5}", + "${NOMAD_JOB_NAME}", + "${meta.backupAllocArg6}" + ] } lifecycle { hook = "poststop" diff --git a/templates/nomad_jobs/template_localfs.hcl b/templates/nomad_jobs/template_localfs.hcl index a6e0ea0..2fae818 100644 --- a/templates/nomad_jobs/template_localfs.hcl +++ b/templates/nomad_jobs/template_localfs.hcl @@ -45,7 +45,12 @@ job "TEMPLATE" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.restoreCommand}" - args = ["${meta.restoreCommand1}", "${meta.restoreCommand2}", "${NOMAD_JOB_NAME}", "${meta.restoreCommand3}"] + args = [ + "${meta.restoreCommand1}", + "${meta.restoreCommand2}", + "${NOMAD_JOB_NAME}", + "${meta.restoreCommand3}" + ] } lifecycle { @@ -113,7 +118,15 @@ job "TEMPLATE" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.backupCommand}" - args = ["${meta.backupAllocArg1}", "${meta.backupAllocArg2}", "${meta.backupAllocArg3}", "${meta.backupAllocArg4}", "${meta.backupAllocArg5}", "${NOMAD_JOB_NAME}", "${meta.backupAllocArg6}"] + args = [ + "${meta.backupAllocArg1}", + "${meta.backupAllocArg2}", + "${meta.backupAllocArg3}", + "${meta.backupAllocArg4}", + "${meta.backupAllocArg5}", + "${NOMAD_JOB_NAME}", + "${meta.backupAllocArg6}" + ] } lifecycle { hook = "poststop" diff --git a/templates/nomad_jobs/uptimekuma.hcl b/templates/nomad_jobs/uptimekuma.hcl index 11fe135..b659e04 100644 --- a/templates/nomad_jobs/uptimekuma.hcl +++ b/templates/nomad_jobs/uptimekuma.hcl @@ -37,7 +37,12 @@ job "uptimekuma" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.restoreCommand}" - args = ["${meta.restoreCommand1}", "${meta.restoreCommand2}", "${NOMAD_JOB_NAME}", "${meta.restoreCommand3}"] + args = [ + "${meta.restoreCommand1}", + "${meta.restoreCommand2}", + "${NOMAD_JOB_NAME}", + "${meta.restoreCommand3}" + ] } lifecycle { @@ -99,7 +104,15 @@ job "uptimekuma" { config { # When running a binary that exists on the host, the path must be absolute command = "${meta.backupCommand}" - args = ["${meta.backupAllocArg1}", "${meta.backupAllocArg2}", "${meta.backupAllocArg3}", "${meta.backupAllocArg4}", "${meta.backupAllocArg5}", "${NOMAD_JOB_NAME}", "${meta.backupAllocArg6}"] + args = [ + "${meta.backupAllocArg1}", + "${meta.backupAllocArg2}", + "${meta.backupAllocArg3}", + "${meta.backupAllocArg4}", + "${meta.backupAllocArg5}", + "${NOMAD_JOB_NAME}", + "${meta.backupAllocArg6}" + ] } lifecycle { hook = "poststop"