aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarios <marios@redhat.com>2016-03-23 16:17:13 +0200
committermarios <marios@redhat.com>2016-03-23 16:54:33 +0200
commit843d25af04f58d033e12c2c3d619303d7fd8bb02 (patch)
tree8268d516dc3b4fc68e5c6b02bb82568b49fc7312
parent1dd6de571c79625ccf5520895b764bb9c2dd75d3 (diff)
Add systemctl reload haproxy to the pacemaker_resource_restart.sh
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
-rwxr-xr-xextraconfig/tasks/pacemaker_resource_restart.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/extraconfig/tasks/pacemaker_resource_restart.sh b/extraconfig/tasks/pacemaker_resource_restart.sh
index b2bdc55a..09a452e6 100755
--- a/extraconfig/tasks/pacemaker_resource_restart.sh
+++ b/extraconfig/tasks/pacemaker_resource_restart.sh
@@ -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