Yes. You also get PRIVATE_HOSTNAME and others.
On Jul 31, 2013 1:32 AM, "Russell Jurney" <russell.jur...@gmail.com> wrote:

> I see that PUBLIC_IP/PRIVATE_IP gets set in configure_hostnames - can I
> call that in my ActionHandler and then rely on those variables in other
> scripts?
>
>
> On Tue, Jul 30, 2013 at 3:24 PM, Andrei Savu <savu.and...@gmail.com>wrote:
>
>> You have only one network interface on ec2. The public IP / hostname are
>> not exposed as devices. You can only bind to the private network.
>>
>> All the properties Cluster.Instance are exposed as environment variables:
>>
>> https://github.com/apache/whirr/blob/trunk/core/src/main/java/org/apache/whirr/Cluster.java
>>
>> -- Andrei
>>
>> On Wed, Jul 31, 2013 at 12:08 AM, Russell Jurney <
>> russell.jur...@gmail.com> wrote:
>>
>>> I need to feed the hostname of the node/role being booted, and feed it
>>> into a configuration file to tell the service which interface to bind to.
>>> I'm probably a knucklehead, but I can't find this in examples.
>>>
>>> How do I find the hostname of a node, to feed to configuration?
>>>
>>> --
>>> Russell Jurney twitter.com/rjurney russell.jur...@gmail.com datasyndrome
>>> .com
>>>
>>
>>
>
>
> --
> Russell Jurney twitter.com/rjurney russell.jur...@gmail.com datasyndrome.
> com
>

Reply via email to