Charm: oneiric/redis-master   Revision: 2   Hook: redis-admin-relation-joined
#!/bin/bash

############################################################################################################
# Set debugging information
############################################################################################################

set -ux

############################################################################################################
# Set global variables
############################################################################################################

MY_HOSTNAME=`hostname -f`

############################################################################################################
# Set the hostname in the relation so it can be picked up by the _other_ side
############################################################################################################

relation-set hostname=${MY_HOSTNAME}

echo $JUJU_REMOTE_UNIT joined