Skip to content
Snippets Groups Projects
Commit ac8ea3df authored by ale's avatar ale
Browse files

Honor ca_tag in container bind mounts of service_credentials

parent 1dba0158
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,8 @@
{# Mount the service credentials inside the container. #}
{% for creds in services[item.service].get('service_credentials', []) %}
{{ opt('mount', 'type=bind,source=/etc/credentials/x509/' + creds.name + ',destination=/etc/credentials/x509/' + creds.name) }}
{%- set credentials_path='/etc/credentials/' + (creds.ca_tag | default('x509')) + '/' + creds.name %}
{{ opt('mount', 'type=bind,source=' + credentials_path + ',destination=' + credentials_path) }}
{% endfor %}
{# Security options (unless root=True) #}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment