alert to remember that the ssh setup has a manual step

This commit is contained in:
Andrea Dell'Amico 2021-02-05 17:37:30 +01:00
parent d83e31068e
commit 8583309e0f
3 changed files with 10 additions and 1 deletions

View File

@ -123,7 +123,8 @@ psql_db_pwd: "We cannot save the password into the repository. Use another varia
#
# Those need to be installed on the postgresql server.
#
pgpool_fixed_version: '=4.1.4-2.pgdg18.04+1'
pgpool_version: '4.1.4'
pgpool_fixed_version: '={{ pgpool_version }}-2.pgdg18.04+1'
postgresql_pgpool_pkgs:
- 'postgresql-{{ psql_version }}-pgpool2{{ pgpool_fixed_version }}'

View File

@ -37,6 +37,10 @@
- name: Create the ssh keys for the recovery user
user: user={{ pgpool_recovery_user }} generate_ssh_key=yes ssh_key_bits=2048 ssh_key_file=.ssh/id_rsa ssh_key_type=rsa
- name: Remember to trust the ssh keys between the two nodes
debug:
msg: "Remember to trust the ssh keys between the two nodes. You have to setup the .ssh/authorized_keys manually for the user {{ pgpool_recovery_user }}"
- name: Install the pgpool recovery and remote restart scripts. They assume that the postgresql hosts can talk to each other
template: src={{ item.1 }}.j2 dest={{ item.0.backend_data_directory }}/{{ item.1 }} owner=postgres group=postgres mode=0500
with_nested:

View File

@ -393,7 +393,11 @@ failback_command = ''
# %R = new master database cluster path
# %% = '%' character
{% if pgpool_version is version_compare('4.1.4', '>=')
failover_on_backend_error = {{ pgpool_fail_over_on_backend_error }}
{% else %}
fail_over_on_backend_error = {{ pgpool_fail_over_on_backend_error }}
{% endif %}
# Initiates failover when reading/writing to the
# backend communication socket fails
# If set to off, pgpool will report an