Commit 45b7a2da authored by Julien Cigar's avatar Julien Cigar 🤘
Browse files

add support for encoding, lc_collate + optionnal pgbouncer schema

parent aae7fac5
......@@ -148,6 +148,12 @@ postgresql_database_{{ k }}:
- name: {{ k }}
- owner: {{ v.owner }}
- user: {{ pgsql.lookup.user }}
{% if v.encoding is defined %}
- encoding: {{ v.encoding }}
{% endif %}
{% if v.lc_collate is defined %}
- lc_collate: {{ v.lc_collate }}
{% endif %}
{% if v.lc_ctype is defined %}
- lc_ctype: {{ v.lc_ctype }}
{% endif %}
......@@ -171,6 +177,7 @@ postgresql_database_{{ k }}_set_search_path:
{% endif %}
{% if v.pgbouncer|default(True) %}
# Create a dedicated pgbouncer schema to put the dedicated auth_query function
postgresql_database_{{ k }}_pgbouncer_schema:
postgres_schema.present:
......@@ -202,5 +209,7 @@ postgresql_database_{{ k }}_pgbouncer_connect:
- CONNECT
- user: {{ pgsql.lookup.user }}
{% endif %}
{% endfor %}
{% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment