summaryrefslogtreecommitdiff
path: root/hooks/config-changed
diff options
authorJuan L. Negron <juan.negron@canonical.com>2012-01-27 09:32:55 -0800
committerJuan L. Negron <juan.negron@canonical.com>2012-01-27 09:32:55 -0800
commitae2c61ac962b23b54cbb359d489530be43793603 (patch)
tree3669e1cdddcc195c2d4ea1ca4f106a96a5fbb908 /hooks/config-changed
parent1e6bb62af1241d5d749ac1935448a37ebcf699d9 (diff)
Use public-address so the charm works with outside environments
Diffstat (limited to 'hooks/config-changed')
-rwxr-xr-xhooks/config-changed1
1 files changed, 1 insertions, 0 deletions
diff --git a/hooks/config-changed b/hooks/config-changed
index b678ceb..df92ffb 100755
--- a/hooks/config-changed
+++ b/hooks/config-changed
@@ -7,6 +7,7 @@ set -ux
DEFAULT_REPLSET_NAME=`config-get replicaset`
REPLICASET_MASTER=`config-get replicaset_master`
+HOSTNAME=`unit-get public-address`
############################################################################################################
# Are we connecting to an existing replica set?