salt.states.postgres_group

Management of PostgreSQL groups (roles).

The postgres_group module is used to create and manage Postgres groups.

frank:
  postgres_group.present
salt.states.postgres_group.absent(name, runas=None, user=None)

Ensure that the named group is absent

name
The groupname of the group to remove
runas

System user all operations should be performed on behalf of

Deprecated since version 0.17.0.

user

System user all operations should be performed on behalf of

New in version 0.17.0.

salt.states.postgres_group.present(name, createdb=False, createuser=False, encrypted=False, superuser=False, replication=False, password=None, groups=None, runas=None, user=None)

Ensure that the named group is present with the specified privileges

name
The name of the group to manage
createdb
Is the group allowed to create databases?
createuser
Is the group allowed to create other users?
encrypted
Should the password be encrypted in the system catalog?
superuser
Should the new group be a "superuser"
replication
Should the new group be allowed to initiate streaming replication
password
The group's password
groups
A string of comma separated groups the group should be in
runas

System user all operations should be performed on behalf of

Deprecated since version 0.17.0.

user

System user all operations should be performed on behalf of

New in version 0.17.0.