---
name: "cdist-type__postgres_role"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__postgres_role"
---

# cdist-type\_\_postgres\_role(7)

Manage postgres roles

## NAME

cdist-type\_\_postgres\_role - Manage postgres roles

## DESCRIPTION

This cdist type allows you to create or drop postgres roles.

## OPTIONAL PARAMETERS

- **state**

  Either "present" or "absent", defaults to "present"

All other parameters map directly to the corresponding postgres createrole parameters.

password

## BOOLEAN PARAMETERS

All parameter map directly to the corresponding postgres createrole parameters.

login createdb createrole superuser inherit

## EXAMPLES

```
__postgres_role myrole
__postgres_role myrole --password 'secret'
__postgres_role admin --password 'very-secret' --superuser
__postgres_role dbcustomer --password 'bla' --createdb
```

## SEE ALSO

[**cdist-type\_\_postgres\_database**(7)](/cdist-type__postgres_database/7.md)

postgresql documentation at: \<*http://www.postgresql.org/docs/current/static/sql-createrole.html*\>.

## AUTHORS

Steven Armstrong \<*steven-cdist--@--armstrong.cc*\>

## COPYING

Copyright (C) 2011 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
