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:
Forrest
2015-05-05 16:21:00 -07:00
2 changed files with 12 additions and 0 deletions

View File

@@ -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>

View File

@@ -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: