mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-15 17:20:25 +00:00
Add example usage of identity mapping
This commit is contained in:
parent
60cc787b16
commit
f048ab87cd
1 changed files with 5 additions and 0 deletions
|
@ -54,9 +54,14 @@ postgres:
|
|||
# If ``acls`` item value is empty ('', [], null), then the contents of
|
||||
# ``pg_hba.conf`` file will not be touched at all.
|
||||
acls:
|
||||
- ['local', 'db0', 'connuser', 'peer map=users_as_appuser']
|
||||
- ['local', 'db1', 'localUser']
|
||||
- ['host', 'db2', 'remoteUser', '192.168.33.0/24']
|
||||
|
||||
identity_map:
|
||||
- ['users_as_appuser', 'jdoe', 'connuser']
|
||||
- ['users_as_appuser', 'jsmith', 'connuser']
|
||||
|
||||
# Backup extension for configuration files, defaults to ``.bak``.
|
||||
# Set ``False`` to stop creation of backups when config files change.
|
||||
{%- if salt['status.time']|default(none) is callable %}
|
||||
|
|
Loading…
Add table
Reference in a new issue