summaryrefslogtreecommitdiff
diff options
-rwxr-xr-xhooks/database-relation-joined2
-rwxr-xr-xhooks/replica-set-relation-changed2
-rwxr-xr-xhooks/replica-set-relation-joined2
-rw-r--r--metadata.yaml1
4 files changed, 3 insertions, 4 deletions
diff --git a/hooks/database-relation-joined b/hooks/database-relation-joined
index d6e930c..8556c0a 100755
--- a/hooks/database-relation-joined
+++ b/hooks/database-relation-joined
@@ -7,4 +7,4 @@ set -ux
relation-set hostname=`hostname -f` replset=`facter replset-name`
-echo $ENSEMBLE_REMOTE_UNIT joined
+echo $JUJU_REMOTE_UNIT joined
diff --git a/hooks/replica-set-relation-changed b/hooks/replica-set-relation-changed
index d32293f..e9ba184 100755
--- a/hooks/replica-set-relation-changed
+++ b/hooks/replica-set-relation-changed
@@ -80,7 +80,7 @@ do
fi
done
-echo $ENSEMBLE_REMOTE_UNIT modified its settings
+echo $JUJU_REMOTE_UNIT modified its settings
echo Relation settings:
relation-get
echo Relation members:
diff --git a/hooks/replica-set-relation-joined b/hooks/replica-set-relation-joined
index 14568f9..c098fc5 100755
--- a/hooks/replica-set-relation-joined
+++ b/hooks/replica-set-relation-joined
@@ -22,4 +22,4 @@ service mongodb start
relation-set hostname=`hostname -f` replset=`facter replset-name` install-time=`facter install-time`
-echo $ENSEMBLE_REMOTE_UNIT joined
+echo $JUJU_REMOTE_UNIT joined
diff --git a/metadata.yaml b/metadata.yaml
index 99dfba9..b76f45a 100644
--- a/metadata.yaml
+++ b/metadata.yaml
@@ -1,4 +1,3 @@
-ensemble: formula
name: mongodb
revision: 7
summary: An object/document-oriented database (metapackage)