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)

Ensure that the named group is absent

name
The groupname of the group to remove
runas
System user all operation should be preformed on behalf of
salt.states.postgres_group.present(name, createdb=False, createuser=False, encrypted=False, superuser=False, replication=False, password=None, groups=None, runas=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 pasword
groups
A string of comma seperated groups the group should be in
runas
System user all operation should be preformed on behalf of

Parent topic

Table Of Contents

Previous topic

salt.states.postgres_user

Next topic

salt.states.rabbitmq_user