Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
salt-formulas
postgresql-formula
Commits
45b7a2da
Commit
45b7a2da
authored
Nov 29, 2021
by
Julien Cigar
🤘
Browse files
add support for encoding, lc_collate + optionnal pgbouncer schema
parent
aae7fac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
postgresql/server.sls
View file @
45b7a2da
...
...
@@ -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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment