Merge pull request #54 from dferrantelli/add_other_pg_perms
added other postgres user perms such that they can be enabled/disabled
This commit is contained in:
@@ -12,10 +12,18 @@ postgres:
|
|||||||
localUser:
|
localUser:
|
||||||
password: '98ruj923h4rf'
|
password: '98ruj923h4rf'
|
||||||
createdb: False
|
createdb: False
|
||||||
|
createroles: False
|
||||||
|
createuser: False
|
||||||
|
inherit: True
|
||||||
|
replication: False
|
||||||
|
|
||||||
remoteUser:
|
remoteUser:
|
||||||
password: '98ruj923h4rf'
|
password: '98ruj923h4rf'
|
||||||
createdb: False
|
createdb: False
|
||||||
|
createroles: False
|
||||||
|
createuser: False
|
||||||
|
inherit: True
|
||||||
|
replication: False
|
||||||
|
|
||||||
# This section cover this ACL management of the pg_hba.conf file.
|
# This section cover this ACL management of the pg_hba.conf file.
|
||||||
# <type>, <database>, <user>, [host], <method>
|
# <type>, <database>, <user>, [host], <method>
|
||||||
|
|||||||
@@ -89,6 +89,10 @@ postgres-user-{{ name }}:
|
|||||||
postgres_user.present:
|
postgres_user.present:
|
||||||
- name: {{ name }}
|
- name: {{ name }}
|
||||||
- createdb: {{ user.get('createdb', False) }}
|
- 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') }}
|
- password: {{ user.get('password', 'changethis') }}
|
||||||
- user: {{ user.get('runas', 'postgres') }}
|
- user: {{ user.get('runas', 'postgres') }}
|
||||||
- require:
|
- require:
|
||||||
|
|||||||
Reference in New Issue
Block a user