Touched, not typed. Erroneous words are a feature, not a typo. On Nov 8, 2014 10:48 PM, "Dimuthu Leelarathne" <[email protected]> wrote: > > Hi Udara, > > Is it available in the new version of Stratos? Yes > > So when we write to Metadata service, how is my app suppose to get it? Is it via environment variables? In cartridge agent extension(like instance started) you can curl $metadataServiceUrl/property/MYSQL-IP to get MYSQL-IP property. Then expose as a env variable or do any task. I will share an example python script which was written to PHP MySql scenario.
The metadata service url can be sent in payload. > > thanks, > dimuthu > > On Sat, Nov 8, 2014 at 10:45 PM, Udara Liyanage <[email protected]> wrote: >> >> Hi Dimutu, >> >> How about using a metadata service for this. Metadata service is a REST service where its provides APIs to publish and fetch key value/values pairs. >> This is already implemented in Stratos. >> >> So workflow is, >> Instead of writing to git, AF publishes to metadata service. Then cartridge agent fetches from the metadata service and expose as env variable. >> I feel this is more cleaner than commiting to repo. >> >> >> >> >> >> >> Touched, not typed. Erroneous words are a feature, not a typo. >> >> On Nov 8, 2014 10:33 PM, "Dimuthu Leelarathne" <[email protected]> wrote: >>> >>> >>> Hi all, >>> >>> For propagating resources (name-value pairs for Apps) to none-carbon runtimes we need an approach. I have been thinking about the possibilities and this came into my mind. >>> >>> https://creately.com/diagram/i296mkhn1/kguXC7mpUdJsUELKTcjbNrrT4%3D >>> >>> WDYT? Are there different suggestions? Or improvements? >>> >>> thanks, >>> dimuthu >>> >>> -- >>> Dimuthu Leelarathne >>> Architect & Product Lead of App Factory >>> >>> WSO2, Inc. (http://wso2.com) >>> email: [email protected] >>> Mobile : 0773661935 >>> >>> Lean . Enterprise . Middleware >>> >>> _______________________________________________ >>> Architecture mailing list >>> [email protected] >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> > > > > -- > Dimuthu Leelarathne > Architect & Product Lead of App Factory > > WSO2, Inc. (http://wso2.com) > email: [email protected] > Mobile : 0773661935 > > Lean . Enterprise . Middleware > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
