From 9e1ff20af5d4a9cc94155aaf4b4f08b3922f0849 Mon Sep 17 00:00:00 2001 From: Dominic Ferrantelli Date: Tue, 5 May 2015 11:52:33 -0700 Subject: [PATCH 1/2] added other postgres user perms such that they can be enbabled/disabled by this formula --- postgres/init.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgres/init.sls b/postgres/init.sls index 58b4f95..e1bf158 100644 --- a/postgres/init.sls +++ b/postgres/init.sls @@ -89,6 +89,10 @@ postgres-user-{{ name }}: postgres_user.present: - name: {{ name }} - createdb: {{ user.get('createdb', False) }} + - createroles: {{ user.get('createroles', False) }} + - createuser: {{ user.get('createuser', False) }} + - inherit: {{ user.get('inherit', True) }} + - replication: {{ user.get('replication', False) }} - password: {{ user.get('password', 'changethis') }} - user: {{ user.get('runas', 'postgres') }} - require: From 5c08358430e7fd3ead8e80e3944394542e69118e Mon Sep 17 00:00:00 2001 From: Dominic Ferrantelli Date: Tue, 5 May 2015 15:10:34 -0700 Subject: [PATCH 2/2] added examples of new user options to pillar.example --- pillar.example | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pillar.example b/pillar.example index eb34251..c714bb0 100644 --- a/pillar.example +++ b/pillar.example @@ -12,10 +12,18 @@ postgres: localUser: password: '98ruj923h4rf' createdb: False + createroles: False + createuser: False + inherit: True + replication: False remoteUser: password: '98ruj923h4rf' createdb: False + createroles: False + createuser: False + inherit: True + replication: False # This section cover this ACL management of the pg_hba.conf file. # , , , [host],