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 %}
{%- for database in postgresql.databases %}
postgresql_database_{{ database.name }}:
postgresql-database-{{ database.name }}:
postgres_database.present:
- name: {{ database.name }}
- owner: {{ database.user }}
@ -11,5 +11,5 @@ postgresql_database_{{ database.name }}:
- lc_collate: {{ database.collate|default("en_US.UTF-8") }}
- lc_ctype: {{ database.ctype|default("en_US.UTF-8") }}
- require:
- postgres_user: postgresql_user_{{ database.user }}
- postgres_user: postgresql-user-{{ database.user }}
{% endfor %}

View File

@ -3,4 +3,4 @@ postgresql:
databases:
- name: postgres
user: postgres
users: []
users: []

View File

@ -3,4 +3,4 @@ include:
- .install
- .service
- .users
- .databases
- .databases

View File

@ -2,4 +2,4 @@
postgresql-service:
service.running:
- name: postgresql
- enable: true
- enable: true

View File

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