diff --git a/states/postgresql/templates/pg_hba.conf.j2 b/states/postgresql/templates/pg_hba.conf.j2 index 6912cad..e1ca5a7 100644 --- a/states/postgresql/templates/pg_hba.conf.j2 +++ b/states/postgresql/templates/pg_hba.conf.j2 @@ -12,6 +12,9 @@ host {{ user }} repmgr {{ network }} trust {%- for network in net.ip_networks %} host all all {{ network }} md5 {%- endfor %} +{%- for network in net.optional_ip_networks %} +host all all {{ network }} md5 +{%- endfor %} local all postgres peer