This commit is contained in:
Daniel Berteaud 2024-01-31 16:01:30 +01:00
parent eb2e1ee615
commit dd858f11e0
4 changed files with 4 additions and 5 deletions

View File

@ -156,7 +156,6 @@ _EOF
"traefik.consulcatalog.connect=false",
"traefik.tcp.routers.repo-rsync.entrypoints=repo-rsync",
"traefik.tcp.routers.repo-rsync.rule=HostSNI(`*`)",
"traefik.tcp.routers.repo-rsync.middlewares=",
]
}
@ -194,7 +193,7 @@ _EOF
template {
data = <<-_EOF
{{ with secret "kv/service/repo" }}
{{ with secret "/kv/service/repo" }}
{{- range $idx, $key := .Data.data.ssh_keys | split "," -}}
SSH_AUTH_KEY_{{ $idx }}={{ $key }}
{{ end }}{{ end }}

View File

@ -1,3 +1,3 @@
path "kv/data/service/repo" {
path "/kv/data/service/repo" {
capabilities = ["read"]
}

View File

@ -125,7 +125,7 @@ _EOF
template {
data = <<-_EOF
{{ with secret "[[ .vault.prefix ]]kv/service/repo" }}
{{ with secret "[[ .vault.root ]]kv/service/[[ .instance ]]" }}
{{- range $idx, $key := .Data.data.ssh_keys | split "," -}}
SSH_AUTH_KEY_{{ $idx }}={{ $key }}
{{ end }}{{ end }}

View File

@ -1,3 +1,3 @@
path "[[ .vault.prefix ]]kv/data/service/repo" {
path "[[ .vault.root ]]kv/data/service/[[ .instance ]]" {
capabilities = ["read"]
}