~thomnico/charms/precise/elasticsearch/canonical-se

« back to all changes in this revision

Viewing changes to hooks/rest-relation-joined

  • Committer: Paul Czarkowski
  • Date: 2012-11-06 04:34:30 UTC
  • Revision ID: paul@paulcz.net-20121106043430-112bho320lf6ut7i
fixed rest-relation,  tested with kibana

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# This must be renamed to the name of the relation. The goal here is to
 
3
# affect any change needed by relationships being formed, modified, or broken
 
4
# This script should be idempotent.
 
5
set -eux # -x for verbose logging to juju debug-log
 
6
 
 
7
HOME=`dirname $0`
 
8
. $HOME/common.sh
 
9
 
 
10
juju-log $JUJU_REMOTE_UNIT joined
 
11
 
 
12
# Set hostname for rest client
 
13
relation-set cluster-name=${CLUSTER_NAME}
 
14
relation-set host=${HOST}