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:
|
||||
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.
|
||||
# <type>, <database>, <user>, [host], <method>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user