From c58056d594b27e608678e8dc40b46423a2444805 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 8 Jul 2022 16:26:26 -0700 Subject: [PATCH] More nextcloud config using Vault --- nomad/nextcloud/nextcloud-backup.hcl | 3 ++- nomad/nextcloud/nextcloud.nomad | 36 +++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/nomad/nextcloud/nextcloud-backup.hcl b/nomad/nextcloud/nextcloud-backup.hcl index 6d815f0..316f4ad 100644 --- a/nomad/nextcloud/nextcloud-backup.hcl +++ b/nomad/nextcloud/nextcloud-backup.hcl @@ -5,7 +5,8 @@ job "Nextcloud" { repo = "/local/repo" # Read from secret file # Either options.PasswordFile or using readfile() - passphrase = "secret phrase" + # passphrase = "secret phrase" + passwordFile("tmp/passphrase") } task "Create dir for repo" { diff --git a/nomad/nextcloud/nextcloud.nomad b/nomad/nextcloud/nextcloud.nomad index 7f42e37..95ace17 100644 --- a/nomad/nextcloud/nextcloud.nomad +++ b/nomad/nextcloud/nextcloud.nomad @@ -165,9 +165,9 @@ GRANT ALL ON `{{ .Data.data.db_name }}`.* to '{{ .Data.data.db_user }}'@'%'; template { data = <