diff --git a/README.md b/README.md index 96eab2b..563c673 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ postgres_ha_alter_system_settings: Container share memory can be configured with: ```yaml -postgres_share_memory: '1g' +postgres_ha_share_memory: '1g' ``` Metrics exporter for query performance can be activated with: diff --git a/defaults/main.yml b/defaults/main.yml index 901a136..6f3453c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -15,7 +15,7 @@ postgres_ha_host_uid: '{{ 100000 + postgres_ha_cont_uid | int }}' postgres_ha_cont_run_size: '512K' postgres_ha_cont_tmp_size: '256K' -#postgres_share_memory: '64m' +#postgres_ha_share_memory: '64m' # Alter System postgres_ha_alter_system_settings: {} # max_wal_size: '1GB' diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index a8edd37..a477b1b 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -5,8 +5,8 @@ services: container_name: '{{ postgres_ha_cont_name }}' image: '{{ postgres_ha_cont_image }}' restart: always -{% if postgres_share_memory is defined %} - shm_size: '{{ postgres_share_memory }}' +{% if postgres_ha_share_memory is defined %} + shm_size: '{{ postgres_ha_share_memory }}' {% endif %} environment: POSTGRES_DB: '{{ postgres_ha_db_name | mandatory }}'