Skip to content
Snippets Groups Projects
Verified Commit 270074b6 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/postgres: Create a new postgres_ssl_hosts variable that will be used to...

roles/postgres: Create a new postgres_ssl_hosts variable that will be used to determine which hosts can login using ssl
parent e3727218
No related branches found
No related tags found
No related merge requests found
......@@ -9,3 +9,5 @@ postgres_ssl_key_file: '/etc/letsencrypt/live/{{ inventory_hostname }}/privkey.p
postgres_ssl_ca_file: '/etc/letsencrypt/live/{{ inventory_hostname }}/chain.pem'
postgres_shared_buffers: '128MB'
postgres_ssl_hosts: []
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
......@@ -94,3 +95,8 @@ host sameuser all ::1/128 md5
#local replication postgres trust
#host replication postgres 127.0.0.1/32 trust
#host replication postgres ::1/128 trust
{% if postgres_ssl_hosts %}
{% for host in postgres_ssl_hosts %}
hostssl all all {{ host }} md5
{% endfor %}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment