File: postgres_role.md

package info (click to toggle)
bundlewrap 4.24.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,216 kB
  • sloc: python: 20,299; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Postgres role items

Manages Postgres roles.

    postgres_roles = {
        "me": {
            "superuser": True,
            "password": "itsamemario",
        },
    }

<br><br>

# Attribute reference

See also: [The list of generic builtin item attributes](../repo/items.py.md#builtin-item-attributes)

<hr>

## superuser

`True` if the role should be given superuser privileges (defaults to `False`).

<hr>

## password

Plaintext password to set for this role (will be hashed using MD5).

<div class="alert alert-warning">Please do not write any passwords into your bundles. This attribute is intended to be used with an external source of passwords and filled dynamically. If you don't have or want such an elaborate setup, specify passwords using the <code>password_hash</code> attribute instead.</div>

<hr>

## password_hash

As an alternative to `password`, this allows setting the raw hash as it will be stored in Postgres' internal database. Should start with "md5".

<hr>

## delete

`True` if the role should be deleted (defaults to `False`).