hachyderm.general.postgresql role – Install and configure PostgreSQL
Note
This role is part of the hachyderm.general collection (version 1.0.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: ansible-galaxy collection install hachyderm.general.
To use it in a playbook, specify: hachyderm.general.postgresql.
Entry point main – Install and configure PostgreSQL
Synopsis
Install and configure PostgreSQL, an open source object-relational database system.
Parameters
Parameter |
Comments |
|---|---|
Command to archive WAL files. See archive_command. |
|
Enable or disable WAL archiving. Because this mode can only be at server start, it is a good idea to enable it then use an archive command that does nothing so you can change the archive command later without a restart. See archive_mode. Choices:
|
|
Name of the cluster. Useful when multiple clusters are deployed on the same server. Default: |
|
Specifies the directory to use for data storage. See data_directory. |
|
List of host-based authentication rules. See The pg_hba.conf File. Default: |
|
Role of the instance. Configure replication settings. This variable does not promote a replica to primary. Choices:
|
|
List of addresses PostgreSQL will listen to. This list will be transformed to a coma separated list by the role. See listen_addresses. Default: |
|
Sets the destination of the logs. See log_destination. |
|
When See log_directory. |
|
On Unix systems this parameter sets the permissions for log files when See log_file_mode. |
|
When See log_filename. |
|
Sets the time zone used for timestamps written in the server log. See log_timezone. |
|
Create the See The Password File. Choices:
|
|
Configure replication on a replica. This operation will REMOVE THE DATA DIRECTORY to synchronize with a primary. Choices:
|
|
Defines max_wal_senders and max_replication_slots. Default: |
|
The TCP port the server listens on. Default: |
|
In a replication setup, define where to find the primary host. |
|
In a replication setup, define where to find the primary port. Default: |
|
IP range of the network used for the replication to allow in the Default: |
|
Password of the replication user. |
|
In a replication setup, define the name of the replication slot. Default: |
|
Name of the replication user. Default: |
|
Command to restore WAL files. See restore_command. |
|
List of systemd units to wait before starting the service. |
|
Dictionary of custom settings. The key is the name of the setting. The value is the value of the setting. |
|
Once upgraded, remove the old cluster. Choices:
|
|
Used to perform major upgrades. Tell what version the cluster to upgrade is running. Required for pg_upgrade. |
|
Once upgraded, remove the old packages. Choices:
|
|
List of users to create. The key of the dict in the list must have a The key of the dict in the list can have a list of |
|
Version of the PostgreSQL binaries. Upgrading this version will deploy a new independent cluster without upgrading one. See Default: |
|
Determines how much information is written to the WAL. See wal_level. Choices:
|