Rename backup jobs to be lower case

This commit is contained in:
IamTheFij 2022-11-04 09:39:08 -07:00
parent 931e2b6e00
commit f9d46faae9
4 changed files with 9 additions and 9 deletions

View File

@ -151,40 +151,40 @@ CONSUL_HTTP_ADDR={{ env "attr.unique.network.ip-address" }}:8500
data = <<EOF data = <<EOF
# Current node is {{ env "node.unique.name" }} # Current node is {{ env "node.unique.name" }}
{{ if eq (env "node.unique.name") "n2" -}} {{ if eq (env "node.unique.name") "n2" -}}
# Consul backup # consul backup
${file("${module_path}/jobs/consul.hcl")} ${file("${module_path}/jobs/consul.hcl")}
{{ end -}} {{ end -}}
{{ range service "nextcloud" -}} {{ range service "nextcloud" -}}
# Nextcloud .Node {{ .Node }} # nextcloud .Node {{ .Node }}
{{ if eq .Node (env "node.unique.name") -}} {{ if eq .Node (env "node.unique.name") -}}
${file("${module_path}/jobs/nextcloud.hcl")} ${file("${module_path}/jobs/nextcloud.hcl")}
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}
{{ range service "grafana" -}} {{ range service "grafana" -}}
# Grafana .Node {{ .Node }} # grafana .Node {{ .Node }}
{{ if eq .Node (env "node.unique.name") -}} {{ if eq .Node (env "node.unique.name") -}}
${file("${module_path}/jobs/grafana.hcl")} ${file("${module_path}/jobs/grafana.hcl")}
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}
{{ range service "lldap" -}} {{ range service "lldap" -}}
# Lldap .Node {{ .Node }} # lldap .Node {{ .Node }}
{{ if eq .Node (env "node.unique.name") -}} {{ if eq .Node (env "node.unique.name") -}}
${file("${module_path}/jobs/lldap.hcl")} ${file("${module_path}/jobs/lldap.hcl")}
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}
{{ range service "sonarr" -}} {{ range service "sonarr" -}}
# Lldap .Node {{ .Node }} # sonarr .Node {{ .Node }}
{{ if eq .Node (env "node.unique.name") -}} {{ if eq .Node (env "node.unique.name") -}}
${file("${module_path}/jobs/sonarr.hcl")} ${file("${module_path}/jobs/sonarr.hcl")}
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}
{{ range service "nzbget" -}} {{ range service "nzbget" -}}
# Lldap .Node {{ .Node }} # nzbget .Node {{ .Node }}
{{ if eq .Node (env "node.unique.name") -}} {{ if eq .Node (env "node.unique.name") -}}
${file("${module_path}/jobs/nzbget.hcl")} ${file("${module_path}/jobs/nzbget.hcl")}
{{ end -}} {{ end -}}

View File

@ -1,4 +1,4 @@
job "Consul" { job "consul" {
schedule = "0 * * * *" schedule = "0 * * * *"
config { config {

View File

@ -1,4 +1,4 @@
job "Grafana" { job "grafana" {
schedule = "0 * * * *" schedule = "0 * * * *"
config { config {

View File

@ -1,4 +1,4 @@
job "Nextcloud" { job "nextcloud" {
schedule = "0 * * * *" schedule = "0 * * * *"
config { config {