The postgres_database module is used to create and manage Postgres databases. Databases can be set as either absent or present
frank:
postgres_database.present
Ensure that the named database is absent
The name of the database to remove
database username if different from config or default
user password if any password for a specified user
Database host if different from config or default
Database port if different from config or default
System user all operations should be performed on behalf of
New in version 0.17.0.
Ensure that the named database is present with the specified properties. For more information about all of these options see man createdb(1)
The name of the database to manage
Default tablespace for the database
The character encoding scheme to be used in this database
The LC_COLLATE setting to be used in this database
The LC_CTYPE setting to be used in this database
The username of the database owner
Recurse owner change to all relations in the database
The template database from which to build this database
System user all operations should be performed on behalf of
database username if different from config or default
user password if any password for a specified user
Database host if different from config or default
Database port if different from config or default
New in version 0.17.0.