summaryrefslogtreecommitdiff
path: root/hooks/database-relation-joined
diff options
authorJuan L. Negron <juan.negron@canonical.com>2011-11-28 10:35:59 -0800
committerJuan L. Negron <juan.negron@canonical.com>2011-11-28 10:35:59 -0800
commit2d622f2b6df5d252ad861ff9c4a9576fb67be2ec (patch)
tree08b50bdda606f159da20a1478886343c04d5aa1e /hooks/database-relation-joined
parent4349c15c7c8f195221208895ff9c0436c2473ecf (diff)
Added config.yaml file with replica-set name. Changed the use of facter for config-get in the replica-set variable. Verified working in oneiric
Diffstat (limited to 'hooks/database-relation-joined')
-rwxr-xr-xhooks/database-relation-joined2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/database-relation-joined b/hooks/database-relation-joined
index 8556c0a..d9d2c87 100755
--- a/hooks/database-relation-joined
+++ b/hooks/database-relation-joined
@@ -5,6 +5,6 @@
set -ux
-relation-set hostname=`hostname -f` replset=`facter replset-name`
+relation-set hostname=`hostname -f` replset=`config-get replicaset`
echo $JUJU_REMOTE_UNIT joined