charm-nova-cloud-controller/scripts/add_to_cluster
2013-04-09 11:31:23 -07:00

14 lines
280 B
Bash
Executable File

#!/bin/bash
service corosync start || /bin/true
sleep 2
while ! service pacemaker start; do
echo "Attempting to start pacemaker"
sleep 1;
done;
crm node online
sleep 2
while crm status | egrep -q 'Stopped$'; do
echo "Waiting for nodes to come online"
sleep 1
done