Hi Ajantan, Yes this can be done in PPaaS.
We implemented web app which has simple REST api s to act as a metadata service. In addition we we extended cartridge agents of MySQL and PHP. MySQL cartridge sends its details(IP,credentials, some other data required) to metadata service by calling REST api. We used simple python scripts to call the metadata service's REST api. PHP cartridge agent get those db details via the metadata service. After fetching those details they can be set as environment variables or write to a config file etc. I can share the python scripts and web app. Touched, not typed. Erroneous words are a feature, not a typo. On Aug 22, 2014 5:43 PM, "Ajanthan Balachandran" <[email protected]> wrote: > > > > On Fri, Aug 22, 2014 at 9:43 AM, Udara Liyanage <[email protected]> wrote: > >> Hi, >> >> We have done a similar thing by adding metadata service and extending >> cartridge agent. When mysql instance get activated, cartridge agent sends >> sends IP and credentials to the metadata service. When php instance started >> cartridge agent call the metadata service and get those db details and set >> as environment variables. >> I hope your requirement can be achieved by a similar mechanism. I can >> explain in detail if this is feasible for you. >> > Most of the PAASes out there following this approach to inject database > details into app.In our case user may edit this parameter after first > deploy, is it possible to do it in private PAAS? > Are there any API that we can push those details and notify cartridge > agent to update & restart after launching cartridge? > >> >> > >> >> >> Touched, not typed. Erroneous words are a feature, not a typo. >> >> _______________________________________________ >> Architecture mailing lists >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > ajanthan > -- > Ajanthan Balachandiran > Senior Software Engineer; > Solutions Technologies Team ;WSO2, Inc.; http://wso2.com/ > > email: ajanthan <http://goog_595075977>@wso2.com; cell: +94775581497 > blog: http://bkayts.blogspot.com/ > > Lean . Enterprise . Middleware >
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
