According to the wiki [1] instructions for 4.0.0, these files are NOT managed using the bistro's package manager:
- java - stratos agent - load balancer - activemq libraries My assumption is that all other applications managed by the puppet scripts provided with 4.0.0 will be managed using the distro package manager. On 27 Jun 2014 06:02, "Nirmal Fernando" <nirmal070...@gmail.com> wrote: > Hi Maria, > > I believe almost all the modules use apt-get to install basic software > (eg: zip). But if the software is not available via package manager, we > would need to host it somewhere in the puppet master and then write puppet > scripts s.t. puppet master would push relevant binaries to cartridge > instances. > > > On Fri, Jun 27, 2014 at 6:30 AM, Maria Beckham <mariabeckha...@yahoo.com> > wrote: > >> Thanks Chris >> >> Could you please let me know in 4.0.0 release which modules have been >> setup as apt-get install and non-apt-ge installs. Is it only mysql? >> >> ------------------------------ >> *From:* chris snow <chsnow...@gmail.com> >> >> *To:* dev <dev@stratos.apache.org>; Maria Beckham < >> mariabeckha...@yahoo.com> >> *Sent:* Thursday, June 26, 2014 11:40 AM >> >> *Subject:* Re: Fw: tomcat and mysql cartridge(Please respond) >> >> I'm only guessing here, but: >> >> - mysql is easier to install with distribution packages (e.g. apt-get >> install mysql) >> - Oracle JDK is required, but this can't be installed from the >> distribution packages >> >> >> >> >> On Thu, Jun 26, 2014 at 7:25 PM, Maria Beckham <mariabeckha...@yahoo.com> >> wrote: >> >> Dinesh, >> >> I am aware of this. As conveyed in my earlier mails, if thats the case, >> why mysql is not handled in this way? why only java >> >> ------------------------------ >> *From:* Dinesh Bandara <dine...@wso2.com> >> *To:* dev <dev@stratos.apache.org>; Maria Beckham < >> mariabeckha...@yahoo.com> >> *Sent:* Thursday, June 26, 2014 10:54 AM >> *Subject:* Re: Fw: tomcat and mysql cartridge(Please respond) >> >> Puppet master should be configured manually with relevant binary packs >> which required for installing the service. Please refer [1]. Then puppet >> agent in cartridge instance will download packs form puppet master. >> >> [1] >> http://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html#example >> >> >> >> >> On Thu, Jun 26, 2014 at 10:57 PM, Maria Beckham <mariabeckha...@yahoo.com >> > wrote: >> >> Just forwarding the below question again, in case, it has not been >> received. >> >> ----- Forwarded Message ----- >> *From:* Maria Beckham <mariabeckha...@yahoo.com> >> *To:* "dev@stratos.apache.org" <dev@stratos.apache.org> >> *Sent:* Thursday, June 26, 2014 7:48 AM >> *Subject:* Re: tomcat and mysql cartridge(Please respond) >> >> thanks. >> >> But, does software binaries get automatically downloaded(or wget'ed) to >> /mnt/packs through puppet scripts? Or one should download manually the >> needed software(like oracle for example) to that location before it needs >> installed through puppet scripts? >> >> >> >> ------------------------------ >> *From:* Dinesh Bandara <dine...@wso2.com> >> *To:* dev <dev@stratos.apache.org>; Maria Beckham < >> mariabeckha...@yahoo.com> >> *Sent:* Thursday, June 26, 2014 12:18 AM >> *Subject:* Re: tomcat and mysql cartridge(Please respond) >> >> I think I was not clear to you. >> >> On Thu, Jun 26, 2014 at 12:09 PM, Maria Beckham <mariabeckha...@yahoo.com >> > wrote: >> >> thanks dinesh. >> >> so basically, /mnt/packs is the repo for all the binaries of the modules >> right? >> >> /mnt/packs is the directory inside cartridge instance that required >> binaries are downloaded to. Assume that your cartridge instance required to >> install cartridge agent, first it will be download into /mnt/packs/ and >> then installed into /mnt/ >> >> >> if so, we have our own internal repository thats used company wide. >> >> how can we make this happen rrom our internal shared rep to extract >> needed binaries for the respective cartridge services? >> >> Currently we are not supporting to get required binaries form internal >> or external repository. >> >> ------------------------------ >> *From:* Dinesh Bandara <dine...@wso2.com> >> *To:* dev <dev@stratos.apache.org>; Maria Beckham < >> mariabeckha...@yahoo.com> >> *Sent:* Wednesday, June 25, 2014 11:27 PM >> >> *Subject:* Re: tomcat and mysql cartridge(Please respond) >> >> >> Please find my comment inline. >> >> On Thu, Jun 26, 2014 at 10:26 AM, Maria Beckham <mariabeckha...@yahoo.com >> > wrote: >> >> Thanks Uday. I have gotten the concept. >> >> First of all, my questions were mostly on .json definition file >> >> For example: >> >> a) What does the below mean? Why provider is shown as apache and >> version as 7? Are we saying php version 7 and is from >> apache.org? >> type":"php", >> "provider":"apache", >> , >> "version":"7", >> >> You can define your own version and provider in there. Please refer [1] >> for more details >> >> b) How does .json would like say we created a puppet manifest to >> have tomcat and mysql on same cartridge? >> >> >> You can use the cartridge definition [1] with correct service type as >> "type":"<service-type>" in json. Service-type is the name that you have >> given in puppet manifest. >> >> Secondly, >> >> The doc says that default service-name is puppet agent install and is a >> generic cartridge. If I provide service name as >> mysql, would it also install puppet agent? >> >> >> Yes. Through the config.sh we can install given service in to cartridge. >> If you provide "mysql" it will install all the basic requirements (puppet >> agent, java, cartridge agent) along with mysql >> >> Thirdly, >> >> In the base puppet manifest, I see the following and would like to know >> what does these mean? Especially, would like to >> know from where this ip 10.4.128.7' came from? >> >> $package_repo = 'http://10.4.128.7' >> $local_package_dir = '/mnt/packs' >> >> In the nodes.pp, I see the below and would like to know what is this >> with respect to above values in base manifest >> $local_package_dir = '/mnt/packs' >> >> >> $local_package_dir refers where to packs should be downloaded through >> puppet. >> >> >> Fourth'ly, >> >> In tomcat manifest init.pp, I see the target set as /mnt and not >> /mnt/packs. Why this is different to the above? >> >> $target = '/mnt' >> >> >> $target define that where to install. As per your example tomcat will be >> installed into /mnt/ >> >> As an example when installing cartridge agent, it will be downloaded to >> /mnt/packs directory and extracted(installed) in to /mnt >> >> Fifth'ly, >> >> If at all, if I want to create oracle cartridge, i need to create >> puppet module manifests and templates right? And here I have choice to >> pickup the binary(source => "puppet:///modules/java/${package}",) just like >> how java module is created or pickup the os specific way of picking up >> package command(Package['mysql-server'],) just like mysql puppet module >> manifest was created >> >> Yes. You have to write a separate puppet module for oracle. >> >> >> Please kindly respond with details of the working etc. >> >> >> >> >> [1] >> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Sample+Cartridge+Definition >> >> >> >> ------------------------------ >> *From:* Udara Liyanage <ud...@wso2.com> >> *To:* dev@stratos.apache.org; Maria Beckham <mariabeckha...@yahoo.com> >> *Sent:* Wednesday, June 25, 2014 8:55 PM >> *Subject:* Re: tomcat and mysql cartridge(Please respond) >> >> HI, >> >> MySQL and tomcat cartridges are already available with Stratos. Please >> refer to the cartridge creation guide on [1] >> >> When you execute config.sh it will ask for service name depending on >> which the required software are installed. >> Please provide stratos service-name: php >> >> config.sh talks to puppet master to install the software. So if you want >> to install tomcat and mysql in the same instance, >> then you would have to change the puppet accordingly. >> >> [1] >> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Creating+a+Cartridge+on+OpenStack >> >> >> >> On Thu, Jun 26, 2014 at 8:00 AM, Maria Beckham <mariabeckha...@yahoo.com> >> wrote: >> >> Hi All, >> >> Can someone please respond to below questions of mine as I am stuck at >> this point along with config.sh error that I have sent earlier to which >> also I haven't received response. >> >> thanks, >> maria >> >> ------------------------------ >> *From:* Maria Beckham <mariabeckha...@yahoo.com> >> *To:* Maria Beckham <mariabeckha...@yahoo.com>; "dev@stratos.apache.org" >> <dev@stratos.apache.org> >> *Sent:* Wednesday, June 25, 2014 6:15 PM >> *Subject:* Re: tomcat and mysql cartridge >> >> I meant sample definition file on wiki docs is not helpful at this time. >> >> >> >> >> ------------------------------ >> *From:* Maria Beckham <mariabeckha...@yahoo.com> >> *To:* "dev@stratos.apache.org" <dev@stratos.apache.org>; Maria Beckham < >> mariabeckha...@yahoo.com> >> *Sent:* Wednesday, June 25, 2014 6:02 PM >> *Subject:* Re: tomcat and mysql cartridge >> >> sample definition files are not helpful at this time. >> >> how to create definition files for diffferent version of tomcat and mysql >> as an example. >> >> Also, can install tomcat and mysql on an instance before i create >> cartridge image on that instance? So that when i subcribe to this created >> cartridge, the vm that gets spawned will have tomcat instance and mysql >> running. >> >> if so, how to specify definition file? >> >> >> >> ------------------------------ >> *From:* Maria Beckham <mariabeckha...@yahoo.com> >> *To:* "dev@stratos.apache.org" <dev@stratos.apache.org> >> *Sent:* Wednesday, June 25, 2014 3:25 PM >> *Subject:* tomcat and mysql cartridge >> >> Hi All, >> >> I am in process of creating a cartridge for tomcat and mysql. >> >> can you provide cartridge defintion files for both. Bcoz, I am not sure >> whether to specify tomcat download location, version etc to get installed, >> to provide install commands etc when a cartridge vm is spawned. >> >> I would like to have a cartridge that would spawn a vm and install and >> run tomcat etc. same thing for mysql. >> >> Also, can we create one cartridge definition that installs and run both >> tomcat and mysql in one cartridige vm that gets spawned? >> >> thanks, >> >> >> >> >> >> >> >> >> >> >> -- >> >> Udara Liyanage >> Software Engineer >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> >> web: http://udaraliyanage.wordpress.com >> phone: +94 71 443 6897 >> >> >> >> >> >> -- >> *Dinesh Bandara* >> >> >> >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> >> >> >> >> >> -- >> *Dinesh Bandara* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> >> >> >> >> >> >> >> -- >> *Dinesh Bandara* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> >> >> >> >> >> > > > -- > Best Regards, > Nirmal > > Nirmal Fernando. > PPMC Member & Committer of Apache Stratos, > Senior Software Engineer, WSO2 Inc. > > Blog: http://nirmalfdo.blogspot.com/ >