aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-11-20 15:10:18 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-11-20 15:10:18 +0800
commit5999d29ded67ee2847e58fa559dd9da29e1bd150 (patch)
tree5d45d16dfcc82cc72b22cf849c3a05f20f581086 /deploy
parent102bb6775c60fefca3c88d6f582f520384636f9f (diff)
Fix keepalive restart issue
JIRA: COMPASS-621 Change-Id: I4a2e529e71f47ac4097ffda754dcaa50e3c618f8 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy')
-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 6f43e7fd..ab2714a9 100755
--- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
@@ -428,3 +428,9 @@
when:
- checkresult.rc == 0
- offline_deployment is defined and offline_deployment == "Disable"
+
+- 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"'