hachyderm.general.pgbackrest role – Install and configure pgBackRest
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.pgbackrest.
Entry point main – Install and configure pgBackRest
Synopsis
Install and configure pgBackRest, a reliable backup and restore solution for PostgreSQL
Parameters
Parameter |
Comments |
|---|---|
List of groups to append to the operating system user. |
|
Dictionary of allowed users (server) on the agent. The key is the hostname. The value is the stanza name. |
|
Operating system group for an agent. Default: |
|
List of agent to repositories (server) communication. All repositories must be declared. If pgBackRest is supposed to send backups to multiple object storage or filesystems, create a list of the size of the number of server repositories ( Even if the content is repeated. The repository index will be automatically generated. See Repository Options. Default: |
|
Dictionary of stanzas supported by an agent. The key is the name of each stanza. The value is a list of stanza options. The server index will be automatically generated. See Stanza Options. |
|
Content of a Certificate Authority (CA) to verify the authenticity of TLS certificates for an agent. Use the same CA for agent and server. If defined, the content will be written in See TLS Server Certificate Authorities Option. Generate a CA key with Keep the key to renew certificates during the validity time. Generate a CA certificate with |
|
Path to the TLS server certificate authorities for an agent. For certificates signed by a trusted CA, use See TLS Server Certificate Authorities Option. Default: |
|
Content of the TLS server certificate for an agent. See TLS Server Certificate Option. See Generate a certificate request with Generate a certificate with Replace The fully qualified domain name must be resolvable. |
|
Path to the TLS server certificate for an agent. See TLS Server Certificate Option. Default: |
|
Content of the TLS server key for an agent. If defined, the content will be written in Generate a key with |
|
Path to the TLS server key file for an agent. Default: |
|
Operating system user for an agent. Default: |
|
Enable tasks that are part of a circular dependency with the Checking configuration forces a WAL to be archived so a working PostgreSQL instance is required. But, if PostgreSQL is deployed with the pgbackrest binary for the restore command, the service may not start because it requires pgBackRest to be fully working. Same for stanza creation. The Choices:
|
|
Operating system group for a standalone deployment. Default: |
|
Command to execute when a pgBackRest backup command is performed. The command takes two positional arguments.
|
|
Message sent to the notification command when a backup command is starting. Default: |
|
Message sent to the notification command when a backup command is stopping. Default: |
|
List of repositories in a standalone deployment. The repository index will be automatically generated. See Repository Options. |
|
Role of the pgBackRest instance on the server.
Choices:
|
|
DEPRECATED. Use Dictionary of backup schedules. The key is the backup type ( The value is a dict of systemd timer settings (see systemd.timer). |
|
Random number of seconds to wait before starting backup services. |
|
Dictionary of allowed users (agents) on the server. The key is the hostname. The value is the stanza name. Names must be included in the TLS certificate and resolvable by DNS. |
|
Operating system group for a server. Default: |
|
Path where lock files are stored on the server. See Lock Path Option. Default: |
|
List of repositories. See Repository Options. |
|
Dictionary of stanzas to create on a server. The key is the stanza name. The value is a list of repositories. The server index will be automatically generated. See Stanza Options. |
|
Content of a Certificate Authority (CA) to verify the authenticity of TLS certificates for a server. Use the same CA for agent and server. If defined, the content will be written in See TLS Server Certificate Authorities Option. Generate a CA key with Keep the key to renew certificates during the validity time. Generate a CA certificate with |
|
Path to the TLS server certificate authorities for a server. See TLS Server Certificate Authorities Option. Default: |
|
Content of the TLS server certificate for a server. When If defined, the content will be written in See TLS Server Certificate Option. See Generate a certificate request with Generate a certificate with Replace The fully qualified domain name must be resolvable. |
|
Path to the TLS server certificate for a server. See TLS Server Certificate Option. Default: |
|
Content of the TLS server key for a server. When If defined, the content will be written in Generate a key with |
|
Path to the TLS server key file for a server. Default: |
|
Operating system user for a server. Default: |
|
Home of the operating system user for a server. Default: |
|
List of systemd units to wait before starting pgBackRest. |
|
Dictionary of custom settings. The key is the setting name. The value is the setting value. See General Options. |
|
Dictionary of stanzas to create in a standalone deployment. The repository index will be automatically generated. See Stanza Options. |
|
Operating system user for a standalone deployment. Default: |