summaryrefslogtreecommitdiffstats
path: root/compass/deploy/ansible/roles/ha/files/notify.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compass/deploy/ansible/roles/ha/files/notify.sh')
-rw-r--r--compass/deploy/ansible/roles/ha/files/notify.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/compass/deploy/ansible/roles/ha/files/notify.sh b/compass/deploy/ansible/roles/ha/files/notify.sh
new file mode 100644
index 0000000..5edffe8
--- /dev/null
+++ b/compass/deploy/ansible/roles/ha/files/notify.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+python /usr/local/bin/failover.py $1
+mysql -uroot -e"flush hosts"
+service mysql restart