Add systemctl reload haproxy to the pacemaker_resource_restart.sh
authormarios <marios@redhat.com>
Wed, 23 Mar 2016 14:17:13 +0000 (16:17 +0200)
committermarios <marios@redhat.com>
Wed, 23 Mar 2016 14:54:33 +0000 (16:54 +0200)
As discussed in the related bug below, after upgrading your
environment to latest liberty the haproxy config isn't picked
up. This adds a systemctl reload haproxy in the pacemaker
resource restart we run as part of the post-puppet-pacemaker.

Related-Bug: 1561012
Change-Id: Iae3bad745ecdf952a7a0314fe1375d07eb47c454

extraconfig/tasks/pacemaker_resource_restart.sh

index b2bdc55..09a452e 100755 (executable)
@@ -36,3 +36,9 @@ if [ "$pacemaker_status" = "active" -a \
     check_resource httpd started 800
 
 fi
+
+if [ "$pacemaker_status" = "active" ]; then
+    # TODO(marios): remove this once +bug/1561012
+    # need this on all controllers:
+    systemctl reload haproxy
+fi