Do not add the label if the volume is remote

This commit is contained in:
Andrea Dell'Amico 2023-05-29 20:21:27 +02:00
parent 9d466e4abc
commit ca136f40b5
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,7 @@ networks:
volumes:
{{ epas_client_timbrature_data_volume }}:
{% if epas_client_timbrature_data_remote_volume %}
{% if epas_client_timbrature_data_remote_volume %}
driver: local
driver_opts:
type: nfs4
@ -50,7 +50,11 @@ services:
placement:
constraints:
- node.role == worker
{% if not epas_client_timbrature_data_remote_volume %}
- {{ epas_client_timbrature_node_constraints }}
{% endif %}
restart_policy:
condition: on-failure
delay: 5s