juan.negron at canonical.com
Wed Oct 5 02:36:30 UTC 2011
Great job on this guys! Greatly appreciated!
On Tue, Oct 4, 2011 at 5:07 PM, Kapil Thangavelu <
kapil.thangavelu at canonical.com> wrote:
> Hi Folks,
> I wanted inform the charm developer community about some important (and
> backwards compatible) changes to handling addresses in units and charms
> came out from the local provider work.
> 0) Units now have public and private addresses associated to them.
> 1) Unit relation settings are now prepopulated with the unit's
> Hooks no longer need to populate this information explicitly to
> to a related service. As an example a wordpress charm can get the
> for its associated mysql service by simply doing (assuming mysql just
> the relation)
> db_address=`relation-get private-address`
> in its db relation hooks. This obviates a common usage of 'relation-get'
> 'relation-set' in hooks. These values are populated before the unit joins
> 2) Hooks now have access to their unit's public and private address in a
> provider independent fashion through a new hook cli api, called unit-get
> A wordpress charm for example can obtain public address (for an apache
> public_address=`unit-get public-address`
> The unit-get command also returns values for 'private-address'.
> The example formulas have been updated to use these new mechanisms.
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Juju