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