updated postgresql state

This commit is contained in:
Paul 2021-08-19 21:15:38 +02:00
parent d456c0e9eb
commit cdb18fb853
5 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
--- ---
{%- from "postgresql/map.jinja" import postgresql with context %} {%- from "postgresql/map.jinja" import postgresql with context %}
{%- for database in postgresql.databases %} {%- for database in postgresql.databases %}
postgresql_database_{{ database.name }}: postgresql-database-{{ database.name }}:
postgres_database.present: postgres_database.present:
- name: {{ database.name }} - name: {{ database.name }}
- owner: {{ database.user }} - owner: {{ database.user }}
@ -11,5 +11,5 @@ postgresql_database_{{ database.name }}:
- lc_collate: {{ database.collate|default("en_US.UTF-8") }} - lc_collate: {{ database.collate|default("en_US.UTF-8") }}
- lc_ctype: {{ database.ctype|default("en_US.UTF-8") }} - lc_ctype: {{ database.ctype|default("en_US.UTF-8") }}
- require: - require:
- postgres_user: postgresql_user_{{ database.user }} - postgres_user: postgresql-user-{{ database.user }}
{% endfor %} {% endfor %}

View File

@ -1,7 +1,7 @@
--- ---
{%- from "postgresql/map.jinja" import postgresql with context %} {%- from "postgresql/map.jinja" import postgresql with context %}
{%- for user in postgresql.users %} {%- for user in postgresql.users %}
postgresql_user_{{ user.name }}: postgresql-user-{{ user.name }}:
postgres_user.present: postgres_user.present:
- name: {{ user.name }} - name: {{ user.name }}
{%- if user.password is defined %} {%- if user.password is defined %}