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 minimum EFM PgPool integration values #634

Merged
merged 3 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions roles/setup_efm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ pcp_passfile_owner: "efm"
pcp_passfile_group: "efm"
pcp_passfile_mode: "0600"
pgpool2_pcp_port: 9898
efm_pgpool2_lb_attach: "{{ efm_bin_path }}/pcp_attach_all.sh %h %t"
efm_pgpool2_lb_detach: ""

supported_os:
- CentOS7
Expand Down
9 changes: 8 additions & 1 deletion roles/setup_efm/tasks/efm_configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,19 @@
- name: Prepare parameters for PgPoolII integration
ansible.builtin.set_fact:
efm_lb_parameters:
- {name: script.load.balancer.attach, value: "{{ efm_bin_path }}/pcp_attach_all.sh %h %t"}
- {name: auto.resume.period, value: "5"}
- {name: script.custom.monitor, value: "{{ efm_bin_path }}/pg_pcp_health.sh"}
- {name: custom.monitor.interval, value: "5"}
- {name: custom.monitor.safe.mode, value: "true"}
- {name: custom.monitor.timeout, value: "10"}
- {name: pgpool.enable, value: "{{ efm_pgpool2_integration | lower }}"}
- {name: pgpool.bin, value: "{{ pgpool2_bin_path }}"}
- {name: pcp.user, value: "{{ pcp_admin_user }}"}
- {name: pcp.host, value: "{{ pgpool2_vip }}"}
- {name: pcp.port, value: "{{ pgpool2_pcp_port }}"}
- {name: pcp.pass.file, value: "{{ pcp_passfile }}"}
- {name: script.load.balancer.attach, value: "{{ efm_pgpool2_lb_attach }}"}
- {name: script.load.balancer.detach, value: "{{ efm_pgpool2_lb_detach }}"}
when:
- efm_pgpool2_integration

Expand Down
Loading