5 pacemaker_status=$(systemctl is-active pacemaker)
7 # Run if pacemaker is running, we're the bootstrap node,
8 # and we're updating the deployment (not creating).
9 if [ "$pacemaker_status" = "active" -a \
10 "$(hiera bootstrap_nodeid)" = "$(facter hostname)" -a \
11 "$(hiera stack_action)" = "UPDATE" ]; then
13 PCMK_RESOURCES="haproxy-clone redis-master rabbitmq-clone galera-master openstack-cinder-volume openstack-cinder-backup"
14 # Ten minutes of timeout to restart each resource, given there are no constraints should be enough
16 for resource in $PCMK_RESOURCES; do
17 if pcs status | grep $resource; then
18 pcs resource restart --wait=$TIMEOUT $resource