~james-page/charms/oneiric/mysql/charm-tester

« back to all changes in this revision

Viewing changes to hooks/tester-relation-changed

  • Committer: James Page
  • Date: 2011-08-10 14:25:05 UTC
  • Revision ID: james.page@canonical.com-20110810142505-e7e9vzag3o8flb48
Added hooks for testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
set -eu
 
4
 
 
5
# Grab identify of myself using ssh-keyscan
 
6
HOSTNAME=`hostname -f`
 
7
IDENTITY=`ssh-keyscan -t dsa,rsa -H ${HOSTNAME} 2> /dev/null`
 
8
 
 
9
ensemble-log "Setting remote identity and hostname for testing service..."
 
10
relation-set identity="$IDENTITY"
 
11
relation-set hostname=$HOSTNAME