Fix haproxy checks

In the precedent patch [1], I suggested the removal of the test script
used, but that change was not included in the commit.

Therefore, the wiring is currently done with a ping test script,
but the test script has no ip address to ping (incomplete command),
leading to failures.

Instead we should ping on an IP that's reachable on all cases,
which defaults to the default route, or a localhost, unless
the user decides to define its own ip address (like an upstream
router, or a public IP).

[1]: https://review.openstack.org/#/c/580379/

Change-Id: I2f818fd8ed6600ffc0de9557ad56a769ec09881e
This commit is contained in:
Jean-Philippe Evrard 2018-07-16 15:28:18 +02:00
parent ebb2faf645
commit 2de7b4954c
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
keepalived_ping_count: 1
keepalived_ping_interval: 10
keepalived_ubuntu_src: "native"
keepalived_ping_address: "{{ ansible_default_ipv4['gateway'] | default('127.0.0.1') }}"
keepalived_sync_groups:
haproxy: