updated postgresql state
This commit is contained in:
parent
d456c0e9eb
commit
cdb18fb853
@ -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 %}
|
||||
|
@ -3,4 +3,4 @@ postgresql:
|
||||
databases:
|
||||
- name: postgres
|
||||
user: postgres
|
||||
users: []
|
||||
users: []
|
||||
|
@ -3,4 +3,4 @@ include:
|
||||
- .install
|
||||
- .service
|
||||
- .users
|
||||
- .databases
|
||||
- .databases
|
||||
|
@ -2,4 +2,4 @@
|
||||
postgresql-service:
|
||||
service.running:
|
||||
- name: postgresql
|
||||
- enable: true
|
||||
- enable: true
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user