Add example usage of identity mapping

This commit is contained in:
Gilles Dartiguelongue 2018-03-12 16:48:56 +01:00
parent 60cc787b16
commit f048ab87cd
No known key found for this signature in database
GPG key ID: 9529A35D9881C679

View file

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