unit-get public-address

Andrew Wilkins andrew.wilkins at canonical.com
Thu Nov 27 03:10:24 UTC 2014


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20141127/65433db9/attachment.html>


More information about the Juju mailing list