aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-12-04 09:58:35 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-12-04 09:59:03 +0800
commitf5c7021fe96c39bfed4f948a01c966604641dc00 (patch)
treec86f306ae4361b401f1e5bc2ed9d249ab1229750
parentbb7fc0344ed6e15f03a35c822478a898ccb95947 (diff)
Fix keepalive restart issue
Change-Id: I4d690b82d2c8c75e2896a7f3575fe3591f719b44 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
-rwxr-xr-xdeploy/adapters/ansible/roles/config-osa/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
index 0503400..e679492 100755
--- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
@@ -434,3 +434,9 @@
dest: /etc/ansible/roles/os_nova/templates/nova.conf.j2
regexp: '^vif_plugging_timeout'
line: 'vif_plugging_timeout = 30'
+
+- name: fix keepalived
+ lineinfile:
+ dest: /opt/openstack-ansible/inventory/group_vars/haproxy/keepalived.yml
+ regexp: 'check_script: "/bin/kill -0 `cat /var/run/haproxy.pid`"'
+ line: ' check_script: "/bin/kill -0 `cat /var/run/haproxy.pid` || true"'