~evarlast/charms/trusty/elasticsearch/trunk

« back to all changes in this revision

Viewing changes to hooks/rest-relation-changed

  • Committer: Luis Arias
  • Date: 2012-05-07 14:50:47 UTC
  • Revision ID: luis@balsamiq.com-20120507145047-evqtkpfrfwq8nyqp
Use rest-relation-changed instead of rest-relation-joined.

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
juju-log $JUJU_REMOTE_UNIT modified its settings
 
6
 
 
7
juju-log Relation settings:
 
8
relation-get
 
9
 
 
10
juju-log Relation members:
 
11
relation-list
 
12
 
 
13
# Set hostname for rest client
 
14
relation-set hostname=$(unit-get private-address)
 
 
b'\\ No newline at end of file'