From cf4a3d96c925c0d1de0be80ced8ac88f2799a1eb Mon Sep 17 00:00:00 2001 From: Domingues Luis Filipe Date: Tue, 19 Feb 2019 14:10:35 +0100 Subject: [PATCH] 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 --- inventory/group_vars/haproxy/keepalived.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inventory/group_vars/haproxy/keepalived.yml b/inventory/group_vars/haproxy/keepalived.yml index 83363476dd..36dc49a7ba 100644 --- a/inventory/group_vars/haproxy/keepalived.yml +++ b/inventory/group_vars/haproxy/keepalived.yml @@ -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