You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Udara Liyanage <ud...@wso2.com> on 2015/02/17 13:02:22 UTC

Do we persist puppet hostname/ip

Hi,

$subject. Though I change puppet hostname/ip in cartridge-config.properties
still the old details are sent to the instance.

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: Do we persist puppet hostname/ip

Posted by Udara Liyanage <ud...@wso2.com>.
Hi Imesh,

Thanks for the input. CartridgeConfigFileReader reads property file and
expose as system variables.

On Tue, Feb 17, 2015 at 6:15 PM, Imesh Gunaratne <im...@apache.org> wrote:

> They are read from system properties:
>
> BasicPayloadData:
>
> payloadBuilder.append("PUPPET_IP=" + System.getProperty("puppet.ip"));
> payloadBuilder.append(",");
> payloadBuilder.append("PUPPET_HOSTNAME=" + System.getProperty("puppet.hostname"));
> payloadBuilder.append(",");
> payloadBuilder.append("PUPPET_DNS_AVAILABLE=" + System.getProperty("puppet.env"));
> payloadBuilder.append(",");
> payloadBuilder.append("PUPPET_ENV=" + System.getProperty("puppet.dns.available"));
> payloadBuilder.append(",");
>
>
> On Tue, Feb 17, 2015 at 5:32 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> Hi,
>>
>> $subject. Though I change puppet hostname/ip in
>> cartridge-config.properties still the old details are sent to the instance.
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: Do we persist puppet hostname/ip

Posted by Lahiru Sandaruwan <la...@wso2.com>.
The issue is that new details are picked only for newly deployed
applications, after you change and restart. This happens because the
details for old subscriptions are kept in Registry AFAIR.

We have to fix this.

Thanks.

On Tue, Feb 17, 2015 at 6:15 PM, Imesh Gunaratne <im...@apache.org> wrote:

> They are read from system properties:
>
> BasicPayloadData:
>
> payloadBuilder.append("PUPPET_IP=" + System.getProperty("puppet.ip"));
> payloadBuilder.append(",");
> payloadBuilder.append("PUPPET_HOSTNAME=" + System.getProperty("puppet.hostname"));
> payloadBuilder.append(",");
> payloadBuilder.append("PUPPET_DNS_AVAILABLE=" + System.getProperty("puppet.env"));
> payloadBuilder.append(",");
> payloadBuilder.append("PUPPET_ENV=" + System.getProperty("puppet.dns.available"));
> payloadBuilder.append(",");
>
>
> On Tue, Feb 17, 2015 at 5:32 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> Hi,
>>
>> $subject. Though I change puppet hostname/ip in
>> cartridge-config.properties still the old details are sent to the instance.
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Do we persist puppet hostname/ip

Posted by Imesh Gunaratne <im...@apache.org>.
They are read from system properties:

BasicPayloadData:

payloadBuilder.append("PUPPET_IP=" + System.getProperty("puppet.ip"));
payloadBuilder.append(",");
payloadBuilder.append("PUPPET_HOSTNAME=" +
System.getProperty("puppet.hostname"));
payloadBuilder.append(",");
payloadBuilder.append("PUPPET_DNS_AVAILABLE=" +
System.getProperty("puppet.env"));
payloadBuilder.append(",");
payloadBuilder.append("PUPPET_ENV=" +
System.getProperty("puppet.dns.available"));
payloadBuilder.append(",");


On Tue, Feb 17, 2015 at 5:32 PM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi,
>
> $subject. Though I change puppet hostname/ip in
> cartridge-config.properties still the old details are sent to the instance.
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos