Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate 'archive_command' configuration for pgBackRest and WAL-G #394

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Jul 4, 2023

This PR introduces an Ansible task that automates the configuration of the 'archive_command' for pgBackRest and WAL-G.

pgBackRest

Ensure that 'archive_command' is set to the value of 'pgbackrest_archive_command'. This operation is performed only when 'pgbackrest_install' is defined and set to true, and 'archive_command' is undefined or its value is not equal to 'pgbackrest_archive_command' variable.

WAL-G

Ensure that 'archive_command' is set to the value of 'wal_g_archive_command'. This operation is performed only when 'wal_g_install' is defined and set to true, and 'archive_command' is undefined or its value is not equal to 'wal_g_archive_command' variable.

New variables

  • pgbackrest_archive_command
  • wal_g_archive_command

This commit includes an Ansible task that automates the configuration of the 'archive_command' for pgBackRest. The task ensures that 'archive_command' is set to the value of 'pgbackrest_archive_command'. This operation is performed only when 'pgbackrest_install' is defined and set to true, and 'archive_command' is undefined or its value is not equal to 'pgbackrest_archive_command' variable.
@vitabaks vitabaks self-assigned this Jul 4, 2023
@vitabaks vitabaks added the enhancement New feature or request label Jul 4, 2023
This commit includes an Ansible task that automates the configuration of the 'archive_command' for WAL-G. The task ensures that 'archive_command' is set to the value of 'wal_g_archive_command'. This operation is performed only when 'wal_g_install' is defined and set to true, and 'archive_command' is undefined or its value is not equal to 'wal_g_archive_command' variable.
@vitabaks vitabaks merged commit ab18cf5 into master Jul 4, 2023
20 checks passed
@vitabaks vitabaks deleted the archive-command branch July 8, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant