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