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 operations should be performed 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 password
- groups
- A string of comma separated groups the group should be in
- runas
- System user all operations should be performed on behalf of