Triggering relation events?
juan.negron at canonical.com
Sat Dec 17 18:26:21 UTC 2011
One way to do that is to put that code in a config-changed hook which will
get called when you change the variables with juju set.
This will ensure that every time you change something with juju set, it
gets propagated via the config-changed hook as the configuration would have
changed on all of the units of that service.
My two cents...
On Sat, Dec 17, 2011 at 9:24 AM, Nick Barcet <nick.barcet at canonical.com>wrote:
> I've been having fun during my week of vacation contributing a few charms
> and a ch_peer_copy function for charm-helpers  which allowed me to
> automatically copy the certificates and des_key that are in the "leader"
> unit of roundcube to all the other units . This works great and shows
> the power of peer relations, but brings a small question:
> Let's imagine that at some point in the future I need to update this
> certificate (let's say, when it expires). I can upload the new certs to
> the machine using 'juju scp'. I can update the configuration of my units
> using 'juju set'. My problem is how do I trigger a change even on all the
> peer relations so that the certificates are copied again? I could not find
> any way to force an event in the doc. Maybe I am taking the wrong approach
> to this?
>  https://code.launchpad.net/~**nijaba/charm-tools/peer-scp<https://code.launchpad.net/~nijaba/charm-tools/peer-scp>
>  https://code.launchpad.net/~**nijaba/charm/oneiric/**roundcube/new-scp<https://code.launchpad.net/~nijaba/charm/oneiric/roundcube/new-scp>
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
> mailman/listinfo/juju <https://lists.ubuntu.com/mailman/listinfo/juju>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Juju