Ubuntu Pastebin

Paste from suchvenu at Wed, 13 Apr 2016 14:55:04 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Code from the reactive layer. for the 2nd service, db.sshconfigured looks to be true and hence not entering here. 

@when 'db.ready'
@when_not 'db.sshconfigured'
function configure_sshkeys(){
        juju-log "************************In db available function ***********"
        #hostname=$(relation_call --state=db.available get_remotehostname) || true
        #juju-log "I got the remote host anme as $hostname"
        key=$(relation_call --state=db.available get_sshkeys) || true
        juju-log "I got the ssh key - $key"
        dbnames=$(relation_call --state=db.available get_dbnames) || true
        juju-log "I got db names - $dbnames"
Download as text