From 4ee415f8e551fa69ceca53a0d1470293be44dbd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Mon, 19 Sep 2022 22:03:50 +0200 Subject: [PATCH] feat(synapse): allow overriding ulimits --- roles/synapse/defaults/main.yml | 2 ++ roles/synapse/tasks/deployment.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/roles/synapse/defaults/main.yml b/roles/synapse/defaults/main.yml index a0c9631..4921eeb 100644 --- a/roles/synapse/defaults/main.yml +++ b/roles/synapse/defaults/main.yml @@ -100,6 +100,8 @@ matrix_synapse_worker_client_endpoints: >- + matrix_synapse_worker_client_presence_endpoints }} +matrix_synapse_container_ulimits: [] + # Certificate management matrix_synapse_container_certificate_refresh: false matrix_synapse_container_certificate_refresh_command: "update-ca-certificates --fresh" diff --git a/roles/synapse/tasks/deployment.yml b/roles/synapse/tasks/deployment.yml index cd1cd96..3f48b0a 100644 --- a/roles/synapse/tasks/deployment.yml +++ b/roles/synapse/tasks/deployment.yml @@ -83,6 +83,7 @@ volumes: "{{ matrix_synapse_docker_volumes }}" restart_policy: unless-stopped state: started + ulimits: "{{ matrix_synapse_container_ulimits }}" register: matrix_synapse_container_started when: matrix_synapse_deployment_method == "docker" tags: ['deploy', 'deploy-synapse']