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], 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: