Fix keepalive pingable_check_script

The source field needs to be called src_check_script
instead of src_ping_check. Plus, check_script takes
parameters, so we need to define the target name under
dest_check_script field.

Change-Id: I7b02a5d58816d3dc7b21a0b5f3bedab530f2b906
Closes-bug: #1816561
This commit is contained in:
Domingues Luis Filipe 2019-02-19 14:10:35 +01:00 committed by Jesse Pretorius (odyssey4me)
parent c62d61c16f
commit cf4a3d96c9

View File

@ -36,10 +36,14 @@ keepalived_global_defs:
keepalived_scripts:
haproxy_check_script:
check_script: "/etc/keepalived/haproxy_check.sh"
##if a src_check_script is defined, it will be uploaded from src_check_script
##on the deploy host to the check_script location. If the check_script needs
##parameters, you can define the location under dest_check_script.
src_check_script: "{{ playbook_dir }}/../scripts/keepalived_haproxy_check.sh"
pingable_check_script:
check_script: "/etc/keepalived/pingable_check.sh {{ keepalived_ping_count }} {{ keepalived_ping_address }}"
src_ping_script: "{{ playbook_dir }}/../scripts/keepalived_pingable_check.sh"
dest_check_script: "/etc/keepalived/pingable_check.sh"
src_check_script: "{{ playbook_dir }}/../scripts/keepalived_pingable_check.sh"
interval: "{{ keepalived_ping_interval }}"
fall: 2
rise: 4