From 5bbb6c494c0769d0ce4fae266102deaee6f0a056 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 3 Nov 2022 15:10:09 -0700 Subject: [PATCH] Fix some formatting --- core/main.tf | 4 ++-- services/backups/backup.nomad | 2 +- services/backups/jobs/grafana.hcl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/main.tf b/core/main.tf index 773a64e..5a91e9a 100644 --- a/core/main.tf +++ b/core/main.tf @@ -14,7 +14,7 @@ module "traefik" { } module "nomad_login" { - source = "IamTheFij/levant/nomad" + source = "IamTheFij/levant/nomad" version = "0.1.0" template_path = "service.nomad" @@ -37,7 +37,7 @@ module "metrics" { } module "loki" { - source = "IamTheFij/levant/nomad" + source = "IamTheFij/levant/nomad" version = "0.1.0" template_path = "service.nomad" diff --git a/services/backups/backup.nomad b/services/backups/backup.nomad index df5dc4f..b1ae0a6 100644 --- a/services/backups/backup.nomad +++ b/services/backups/backup.nomad @@ -126,7 +126,7 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { {{ with secret "kv/data/mysql" }} MYSQL_USER=root MYSQL_PASSWORD={{ .Data.data.root_password }} -{{ end -}} +{{ end -}} {{ with secret "kv/data/backups" -}} BACKUP_PASSPHRASE={{ .Data.data.backup_passphrase }} RCLONE_FTP_HOST={{ .Data.data.nas_ftp_host }} diff --git a/services/backups/jobs/grafana.hcl b/services/backups/jobs/grafana.hcl index 777ec67..0ca1dcc 100644 --- a/services/backups/jobs/grafana.hcl +++ b/services/backups/jobs/grafana.hcl @@ -5,7 +5,7 @@ job "Grafana" { repo = "rclone::ftp,env_auth:/nomad/grafana" passphrase = env("BACKUP_PASSPHRASE") } - + task "Create local grafana dir" { pre_script { on_backup = "mkdir -p /local/grafana"