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

add_pgnode.yml: Fix the list of hosts to configure pgbackrest #517

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

vitabaks
Copy link
Owner

Issue: #516

If PgBackrest is configured as dedicated repository host in SSH mode, the SSH key exchange with the nodes of the "postgres_cluster" group is required.

Previously, only the 'new_replica' group was specified, which led to an error when exchanging keys.

Fixed:

TASK [pgbackrest : ssh_keys | Add database ssh keys in "~postgres/.ssh/authorized_keys" on pgbackrest server] ***************
fatal: [10.10.X.X]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'postgres_cluster_sshkey'. 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'postgres_cluster_sshkey'\n\nThe error appears to be in '/home/deployer/supplier_connect_dev/postgresql_cluster/roles/pgbackrest/tasks/ssh_keys.yml': line 63, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: ssh_keys | Add database ssh keys in \"~{{ pgbackrest_repo_user }}/.ssh/authorized_keys\" on pgbackrest server\n  ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"}

If PgBackrest is configured as dedicated repository host in SSH mode, the SSH key exchange with the nodes of the "postgres_cluster" group is required.

Previously, only the 'new_replica' group was specified, which led to an error when exchanging keys.
@vitabaks vitabaks self-assigned this Nov 27, 2023
@vitabaks vitabaks merged commit f14ee87 into master Nov 28, 2023
17 checks passed
@vitabaks vitabaks deleted the add-pgnode-pgbackrest branch November 28, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant