From 5dfb82fb26bceb6fda0824a8a6415f441906223e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 31 Jan 2024 13:42:29 +0100 Subject: [PATCH] Use .instance for policy name --- controller.nomad.hcl | 4 +++- example/controller.nomad.hcl | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/controller.nomad.hcl b/controller.nomad.hcl index 0f1112a..5df63a2 100644 --- a/controller.nomad.hcl +++ b/controller.nomad.hcl @@ -28,7 +28,9 @@ job "[[ .instance ]]-controller" { [[ template "common/file_env" $c ]] vault { - policies = ["democratic-csi[[ $c.consul.suffix ]]"] + policies = ["[[ $.instance ]][[ $.consul.suffix ]]"] + env = false + disable_file = true } config { diff --git a/example/controller.nomad.hcl b/example/controller.nomad.hcl index 6f06aa2..57c936e 100644 --- a/example/controller.nomad.hcl +++ b/example/controller.nomad.hcl @@ -37,7 +37,9 @@ _EOT vault { - policies = ["democratic-csi"] + policies = ["democratic-csi"] + env = false + disable_file = true } config { @@ -159,7 +161,9 @@ _EOT vault { - policies = ["democratic-csi"] + policies = ["democratic-csi"] + env = false + disable_file = true } config {