Add openstack HA installer code with ansible for compass adapter
[genesis.git] / compass / deploy / ansible / openstack_juno / roles / ha / files / notify.sh
diff --git a/compass/deploy/ansible/openstack_juno/roles/ha/files/notify.sh b/compass/deploy/ansible/openstack_juno/roles/ha/files/notify.sh
new file mode 100644 (file)
index 0000000..5edffe8
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+python /usr/local/bin/failover.py $1
+mysql -uroot -e"flush hosts"
+service mysql restart