How to get ip
saurabh
saurabh.kumar at techblue.co.uk
Wed Oct 15 14:28:40 UTC 2014
Yes both the nodes will be on the same cloud. Thanks for your help. Much
appreciated.
Saurabh
On Wednesday 15 October 2014 07:18 PM, José Antonio Rey wrote:
>
> If both nodes are intended to be in the same cloud, then use the
> private address.
>
> --
> José Antonio Rey
>
> On Oct 15, 2014 8:45 AM, "saurabh" <saurabh.kumar at techblue.co.uk
> <mailto:saurabh.kumar at techblue.co.uk>> wrote:
>
> Hi José,
> Thanks for the prompt reply.
> The idea is to expose services of this node to another node using
> that IP. So what do you suggest??
>
>
> On Wednesday 15 October 2014 07:07 PM, José Antonio Rey wrote:
>>
>> The commands you are looking for are `unit-get private-address`
>> for the private IP address, and `unit-get public-address` for the
>> public IP address. If you will be using this value only inside
>> your service, I would recommend getting the private address for
>> the machine.
>>
>> --
>> José Antonio Rey
>>
>> On Oct 15, 2014 8:32 AM, "saurabh" <saurabh.kumar at techblue.co.uk
>> <mailto:saurabh.kumar at techblue.co.uk>> wrote:
>>
>> Hi All,
>>
>> I was wondering how do i get the ip of a running instance of
>> a charm using hooks. I need the IP to bind the services of
>> the charm against this IP.
>>
>> So when I deploy my charm I would like to get the IP of the
>> instance and then change the configuration of the charm to
>> use this IP to bind services. Any help will be much appreciated.
>>
>>
>> Thanks,
>>
>> --
>> Saurabh Kumar
>>
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com <mailto: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/20141015/416bac3f/attachment.html>
More information about the Juju
mailing list