Send password from one charm instance to another on the same cloud.

Simon Davy bloodearnest at gmail.com
Fri Oct 17 09:21:15 UTC 2014


On 17 October 2014 10:13, saurabh <saurabh.kumar at techblue.co.uk> wrote:
> Hi All,
>
> I need to communicate password from one charm instance to another instance
> in order to authenticate services.
> Please suggest me a way to do that.

Hi Saurabh

I assume by "one charm instance to another" you mean two units in the
same service?

In which case, having the charm implement the peer relation would
allow that communication. E.g. if one unit does a relation-set
password=<secret>, all other units (instances) in the service will be
able to do "relation-get password" in the peer relation-changed hook.

More info at: https://juju.ubuntu.com/docs/authors-charm-metadata.html#peer-relations

If you mean between two instances of different charms, then a normal
relation will do, of course,

HTH

-- 
Simon



More information about the Juju mailing list