Postgresql Facts¶
See also: Postgresql Operations.
postgresql.PostgresqlDatabases
¶
host.get_fact(PostgresqlDatabases, psql_user=None, psql_password=None, psql_host=None, psql_port=None)
Returns a dict of PostgreSQL databases and metadata:
{
"pyinfra_stuff": {
"encoding": "UTF8",
"collate": "en_US.UTF-8",
"ctype": "en_US.UTF-8",
...
},
}
postgresql.PostgresqlRoles
¶
host.get_fact(PostgresqlRoles, psql_user=None, psql_password=None, psql_host=None, psql_port=None)
Returns a dict of PostgreSQL roles and data:
{
"pyinfra": {
"super": true,
"createrole": false,
"createdb": false,
...
},
}