From f048ab87cd788e3a6a89c2a6cb4a4400b3d21d9c Mon Sep 17 00:00:00 2001 From: Gilles Dartiguelongue Date: Mon, 12 Mar 2018 16:48:56 +0100 Subject: [PATCH] Add example usage of identity mapping --- pillar.example | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pillar.example b/pillar.example index 38f16e8..fe29f4d 100644 --- a/pillar.example +++ b/pillar.example @@ -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 %}