Add artifacts template

This commit is contained in:
Daniel Berteaud 2024-03-27 13:20:27 +01:00
parent 014b6db6c1
commit 5f8a25a2a7
4 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,8 @@ job "vaultwarden" {
region = "global"
group "vaultwarden" {
count = 1
@ -147,6 +149,8 @@ job "vaultwarden" {
}
env {
ROCKET_ADDRESS = "127.0.0.1"
ROCKET_PORT = 8234
@ -164,6 +168,8 @@ _EOT
env = true
}
# Use a template block instead of env {} so we can fetch values from vault
template {
data = <<_EOT

View File

@ -52,6 +52,7 @@ job "[[ .instance ]]" {
}
[[ template "common/vault.policies" $c ]]
[[ template "common/artifacts" $c ]]
env {
ROCKET_ADDRESS = "127.0.0.1"