Merge pull request 'Use a NFS volume for the attachments' (!15) from adellam/ansible-role-epas:master into master

Reviewed-on: #15
This commit is contained in:
Andrea Dell'Amico 2023-05-22 20:07:25 +02:00
commit f67fa33e67
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,6 @@ epas_docker_registry_pwd: 'use a vault file'
epas_docker_network: 'epas_net'
epas_docker_attachments_node: 'localhost'
epas_attachments_volume: 'epas_attachments_data'
epas_node_constraints: 'node.labels.epas_storage == attachments'
epas_behind_haproxy: True
epas_haproxy_public_net: 'haproxy-public'
# DB

View File

@ -7,6 +7,11 @@ networks:
volumes:
{{ epas_attachments_volume }}:
driver: local
driver_opts:
type: nfs4
o: "nfsvers=4,addr=146.48.123.250,rw"
device: ":/nfs/epas_prod_attachments_data"
{% if epas_dockerized_db %}
{{ epas_pg_backups_volume }}:
{{ epas_db_volume }}: