Also, since our configurations on puppet ip and puppet hostname is
currently in Stratos manager, cartridge.properties file, i will add this
variable to the same conf file.

Thanks.


On Tue, Aug 26, 2014 at 1:13 PM, Lahiru Sandaruwan <lahi...@wso2.com> wrote:

> Hi all,
>
> It seems we do not have $subject now. It would be a best practice to have
> in enterprise setups.
>
> Here is a possible fix i thought of,
>
> * In the case user has DNS, we can to add a payload parameter to cartridge
> jsons to inform that.
> e.g. DNS_AVAILABLE=true
> * In init.sh of cartridge instance, we can check the payload parameter and
> avoid adding host entry to /etc/hosts file which is done in following line,
>
> ${ECHO} "${PUPPET_IP}  ${PUPPET_HOSTNAME}" >> ${HOSTSFILE}
>
> Then instances will always communicate to puppet master using the DNS
> name.
>
> Send your thoughts over.
>
>  Thanks.
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahi...@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


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

email: lahi...@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Reply via email to