From 73cf7901fdb47cc72be4b98f711f97558b1a57be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Paw=C5=82owski?= Date: Mon, 17 Jul 2017 13:38:34 +0100 Subject: [PATCH] Document how to specify view permissions Example: `pg_stat_database` is a view in `pg_catalog`. ``` datadog_grants: postgres_privileges.present: - name: datadog - prepend: pg_catalog - object_name: pg_stat_database - object_type: table - privileges: - SELECT ``` --- salt/states/postgres_privileges.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/states/postgres_privileges.py b/salt/states/postgres_privileges.py index 67c6fbbdf3..451f3f7eec 100644 --- a/salt/states/postgres_privileges.py +++ b/salt/states/postgres_privileges.py @@ -110,6 +110,8 @@ def present(name, - group - function + View permissions should specify `object_type: table`. + privileges List of privileges to grant, from the list below: @@ -231,6 +233,8 @@ def absent(name, - group - function + View permissions should specify `object_type: table`. + privileges Comma separated list of privileges to revoke, from the list below: