postgresql
A free and open-source relational database management system (RDBMS) emphasizing extensibility and SQL compliance.
Will be deprecated
The postgresql
module might eventually be migrated to 'clanServices'*
See: clanServices
Categories
Usage via Inventory
This module cannot be used via the inventory interface.
Usage via Nix
This module can be also imported directly in your nixos configuration. Although it is recommended to use the inventory interface if available.
Some modules are considered 'low-level' or 'expert modules' and are not available via the inventory interface.
Module Options
The following options are available for this module.
clan.postgresql.databases
Databases to create
Type: attribute set of (submodule)
Default:
Declared in: clanModules/postgresql
clan.postgresql.databases.<name>.create.enable
Create the database if it does not exist.
Type: boolean
Default:
Declared in: clanModules/postgresql
clan.postgresql.databases.<name>.create.options
Options to pass to the CREATE DATABASE command.
Type: lazy attribute set of string
Default:
Example
Declared in: clanModules/postgresql
clan.postgresql.databases.<name>.name
Database name.
Type: string
Default:
Declared in: clanModules/postgresql
clan.postgresql.databases.<name>.restore.stopOnRestore
List of systemd services to stop before restoring the database.
Type: list of string
Default:
Declared in: clanModules/postgresql
clan.postgresql.databases.<name>.service
Service name that we associate with the database.
Type: string
Default:
Declared in: clanModules/postgresql
clan.postgresql.users
Users to create
Type: attribute set of (submodule)
Default:
Declared in: clanModules/postgresql
clan.postgresql.users.<name>.name
User name
Type: string
Default:
Declared in: clanModules/postgresql