summaryrefslogtreecommitdiff
path: root/hooks/database-relation-joined
diff options
authorJuan L. Negron <juan.negron@canonical.com>2011-08-10 22:36:24 -0700
committerJuan L. Negron <juan.negron@canonical.com>2011-08-10 22:36:24 -0700
commita436f79bd0093c7079aa5babb218f7ddce2f26a6 (patch)
treee2a11799cbf1b1dff94a07cddd37205f9d0e89b8 /hooks/database-relation-joined
Initial commit
Diffstat (limited to 'hooks/database-relation-joined')
-rwxr-xr-xhooks/database-relation-joined10
1 files changed, 10 insertions, 0 deletions
diff --git a/hooks/database-relation-joined b/hooks/database-relation-joined
new file mode 100755
index 0000000..d6e930c
--- /dev/null
+++ b/hooks/database-relation-joined
@@ -0,0 +1,10 @@
+#!/bin/bash
+# This must be renamed to the name of the relation. The goal here is to
+# affect any change needed by relationships being formed
+# This script should be idempotent.
+
+set -ux
+
+relation-set hostname=`hostname -f` replset=`facter replset-name`
+
+echo $ENSEMBLE_REMOTE_UNIT joined