Fix keepalive restart issue 37/65237/1
authorHarry Huang <huangxiangyu5@huawei.com>
Tue, 20 Nov 2018 07:10:18 +0000 (15:10 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Tue, 20 Nov 2018 07:10:18 +0000 (15:10 +0800)
JIRA: COMPASS-621

Change-Id: I4a2e529e71f47ac4097ffda754dcaa50e3c618f8
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
deploy/adapters/ansible/roles/config-osa/tasks/main.yml

index 6f43e7f..ab2714a 100755 (executable)
   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"'