unit-get public-address

Marco Ceppi marco at ondina.co
Wed Dec 3 16:27:59 UTC 2014


We typically discourage querying cloud specific utils in charms as it makes
them far less portable. It would be much more preferred to have this
patched in Juju.

On Wed Nov 26 2014 at 10:10:35 PM Andrew Wilkins <
andrew.wilkins at canonical.com> wrote:

> Hi Mike,
>
> Sounds like you're hitting
> https://bugs.launchpad.net/juju-core/+bug/1308374.
> There's a workaround described in the bug description: use an external DNS.
>
> Alternatively, you could (temporarily) do something EC2-specific in your
> charm:
>     $(ec2metadata --public-ipv4)
>
> Cheers,
> Andrew
>
>
> On Thu, Nov 27, 2014 at 1:02 AM, Mike Schwartz <mike at gluu.org> wrote:
>
>> Juju gurus,
>>
>> $(unit-get public-address) from within a hook is failing for us right now
>> on AWS. It returns the private address instead. I heard a fix will be
>> available in juju v1.21. Is there any way workaround, as we really want to
>> ship the Gluu Server charm ASAP.
>>
>> thx,
>>
>> Mike
>>
>>
>> -------------------------------------
>> Michael Schwartz
>> Gluu
>> Founder / CEO
>> mike at gluu.org
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/juju
>>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20141203/0655d46d/attachment.html>


More information about the Juju mailing list