Move stunnel psks to a more restrictive path
This commit is contained in:
parent
c33f877af8
commit
f0d31ff13c
@ -312,27 +312,24 @@ PSKsecrets = {{ env "NOMAD_SECRETS_DIR" }}/ldap_stunnel_psk.txt
|
||||
|
||||
%{~ if use_mysql }
|
||||
template {
|
||||
# TODO: move psk to nomad/jobs/name/name/stunnel
|
||||
data = <<EOF
|
||||
{{- with nomadVar "nomad/jobs/${name}" }}{{ .mysql_stunnel_psk }}{{ end -}}
|
||||
{{- with nomadVar "nomad/jobs/${name}/${name}/stunnel" }}{{ .mysql_stunnel_psk }}{{ end -}}
|
||||
EOF
|
||||
destination = "$${NOMAD_SECRETS_DIR}/mysql_stunnel_psk.txt"
|
||||
}
|
||||
%{ endif }
|
||||
%{~ if use_redis }
|
||||
template {
|
||||
# TODO: move psk to nomad/jobs/name/name/stunnel
|
||||
data = <<EOF
|
||||
{{- with nomadVar "nomad/jobs/${name}" }}{{ .redis_stunnel_psk }}{{ end -}}
|
||||
{{- with nomadVar "nomad/jobs/${name}/${name}/stunnel" }}{{ .redis_stunnel_psk }}{{ end -}}
|
||||
EOF
|
||||
destination = "$${NOMAD_SECRETS_DIR}/redis_stunnel_psk.txt"
|
||||
}
|
||||
%{~ endif }
|
||||
%{~ if use_ldap }
|
||||
template {
|
||||
# TODO: move psk to nomad/jobs/name/name/stunnel
|
||||
data = <<EOF
|
||||
{{- with nomadVar "nomad/jobs/${name}" }}{{ .ldap_stunnel_psk }}{{ end -}}
|
||||
{{- with nomadVar "nomad/jobs/${name}/${name}/stunnel" }}{{ .ldap_stunnel_psk }}{{ end -}}
|
||||
EOF
|
||||
destination = "$${NOMAD_SECRETS_DIR}/ldap_stunnel_psk.txt"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user