[keepalived] Check proccess id of nginx on proxy 63/53163/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 6 Mar 2018 12:32:43 +0000 (16:32 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 6 Mar 2018 12:32:43 +0000 (16:32 +0400)
By default vrrp script seeks out haproxy process id, so change
check_pidof script arguments to "nginx" on proxy nodes.

Change-Id: I616bf90ba49fa8257d28d236dcf3b7c5598039f1
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/reclass/classes/cluster/mcp-pike-common-ha/openstack_proxy.yml

index 92d4a40..a32640e 100644 (file)
@@ -43,3 +43,8 @@ parameters:
         proxy:
           alternative_names: "IP:${_param:openstack_proxy_address}"
           key_usage: 'digitalSignature, keyEncipherment'
+  keepalived:
+    cluster:
+      vrrp_scripts:
+        check_pidof:
+          args: 'nginx'