You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Maria Beckham <ma...@yahoo.com> on 2014/06/26 00:25:09 UTC
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,
Re: tomcat and mysql cartridge
Posted by Praneesha Chandrasiri <pr...@wso2.com>.
Hi Maria,
Please see Udara's reply on the mail with the subject: "Re: tomcat and
mysql cartridge(Please respond)" on this same issue.
Also please feel free to forward requests on any further information, if
required.
On Thu, Jun 26, 2014 at 9:32 AM, Praneesha Chandrasiri <pr...@wso2.com>
wrote:
> Hi Maria,
>
> Thanks for bringing this up.
>
> We will look into this and add the information to the docs.
>
>
> On Thu, Jun 26, 2014 at 6:45 AM, Maria Beckham <ma...@yahoo.com>
> wrote:
>
>> I meant sample definition file on wiki docs is not helpful at this time.
>>
>>
>> ------------------------------
>> *From:* Maria Beckham <ma...@yahoo.com>
>> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@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 <ma...@yahoo.com>
>> *To:* "dev@stratos.apache.org" <de...@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,
>>
>>
>>
>>
>>
>>
>
>
> --
> Thanks & Best Regards,
> *Praneesha Chandrasiri*
> *Technical Writer*
> *WSO2 Inc. *
> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
> *E-mail: praneesha@wso2.com <pr...@wso2.com>*
>
>
--
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: praneesha@wso2.com <pr...@wso2.com>*
Re: tomcat and mysql cartridge
Posted by Praneesha Chandrasiri <pr...@wso2.com>.
Hi Maria,
Thanks for bringing this up.
We will look into this and add the information to the docs.
On Thu, Jun 26, 2014 at 6:45 AM, Maria Beckham <ma...@yahoo.com>
wrote:
> I meant sample definition file on wiki docs is not helpful at this time.
>
>
> ------------------------------
> *From:* Maria Beckham <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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,
>
>
>
>
>
>
--
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: praneesha@wso2.com <pr...@wso2.com>*
Re: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
udara answered only one question.
can udara/concerned person, please respond to various other questions asked below(inline would be better).
I know I am asking too much questions. but, i have no choice as iam doing evaluation for my client.
________________________________
From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org>
Sent: Wednesday, June 25, 2014 10:09 PM
Subject: Re: tomcat and mysql cartridge(Please respond)
What about responses to other various questions I have asked below.?
________________________________
From: Udara Liyanage <ud...@wso2.com>
To: dev@stratos.apache.org; Maria Beckham <ma...@yahoo.com>
Sent: Wednesday, June 25, 2014 10:07 PM
Subject: Re: tomcat and mysql cartridge(Please respond)
Hi,
Package repo is not used anywhere. You can ignore it.
On Thu, Jun 26, 2014 at 10:26 AM, Maria Beckham <ma...@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",
>b) How does .json would
like say we created a puppet manifest to have tomcat and mysql on same
cartridge?
>
>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?
>
>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'
>
>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'
>
> 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
>
>
>
>Please kindly respond with details of the working etc.
>
>
>
>
>
>
>
>
>
>
>________________________________
> From: Udara Liyanage <ud...@wso2.com>
>To: dev@stratos.apache.org; Maria Beckham <ma...@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 <ma...@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 <ma...@yahoo.com>
>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@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
>
>
>
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
Re: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
What about responses to other various questions I have asked below.?
________________________________
From: Udara Liyanage <ud...@wso2.com>
To: dev@stratos.apache.org; Maria Beckham <ma...@yahoo.com>
Sent: Wednesday, June 25, 2014 10:07 PM
Subject: Re: tomcat and mysql cartridge(Please respond)
Hi,
Package repo is not used anywhere. You can ignore it.
On Thu, Jun 26, 2014 at 10:26 AM, Maria Beckham <ma...@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",
>b) How does .json would
like say we created a puppet manifest to have tomcat and mysql on same
cartridge?
>
>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?
>
>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'
>
>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'
>
> 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
>
>
>
>Please kindly respond with details of the working etc.
>
>
>
>
>
>
>
>
>
>
>________________________________
> From: Udara Liyanage <ud...@wso2.com>
>To: dev@stratos.apache.org; Maria Beckham <ma...@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 <ma...@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 <ma...@yahoo.com>
>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@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
>
>
>
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
Re: tomcat and mysql cartridge(Please respond)
Posted by Udara Liyanage <ud...@wso2.com>.
Hi,
Package repo is not used anywhere. You can ignore it.
On Thu, Jun 26, 2014 at 10:26 AM, Maria Beckham <ma...@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",
> b) How does .json would like say we created a puppet manifest to have
> tomcat and mysql on same cartridge?
>
> 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?
>
> 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'
>
> 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'
>
> 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
>
>
> Please kindly respond with details of the working etc.
>
>
>
>
>
> ------------------------------
> *From:* Udara Liyanage <ud...@wso2.com>
> *To:* dev@stratos.apache.org; Maria Beckham <ma...@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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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
>
>
>
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by Udara Liyanage <ud...@wso2.com>.
Hi,
MySQL is installed using apt-grt AFAIR. However java is installed by
downloading the jdk.tar.gz file and extracting. Oracle jdk can not be
installed by apt-get that's why. However if you are satisfied with OpenJDK
you can change puppet modules to install java to install by apt-get.
Touched, not typed. Erroneous words are a feature, not a typo.
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by chris snow <ch...@gmail.com>.
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" <ni...@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 <ma...@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 <ch...@gmail.com>
>>
>> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@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 <ma...@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 <di...@wso2.com>
>> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@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 <mariabeckham77@yahoo.com
>> > wrote:
>>
>> Just forwarding the below question again, in case, it has not been
>> received.
>>
>> ----- Forwarded Message -----
>> *From:* Maria Beckham <ma...@yahoo.com>
>> *To:* "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
>> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@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 <mariabeckham77@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 <di...@wso2.com>
>> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@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 <mariabeckham77@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>> *To:* Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org"
>> <de...@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 <ma...@yahoo.com>
>> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@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 <ma...@yahoo.com>
>> *To:* "dev@stratos.apache.org" <de...@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/
>
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by Nirmal Fernando <ni...@gmail.com>.
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 <ma...@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 <ch...@gmail.com>
>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> wrote:
>
> Just forwarding the below question again, in case, it has not been
> received.
>
> ----- Forwarded Message -----
> *From:* Maria Beckham <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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/
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
Hi All,
Can anyone at his/her earliest availability respond to the below question
thanks,
Maria
________________________________
From: Maria Beckham <ma...@yahoo.com>
To: chris snow <ch...@gmail.com>; dev <de...@stratos.apache.org>
Sent: Thursday, June 26, 2014 6:00 PM
Subject: Re: Fw: tomcat and mysql cartridge(Please respond)
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 <ch...@gmail.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <di...@wso2.com>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com> wrote:
>
>Just forwarding the below question again, in case, it has not been received.
>>
>>
>>----- Forwarded Message -----
>>
>>From: Maria Beckham <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <di...@wso2.com>
>>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>>>>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>>>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>>>>To: "dev@stratos.apache.org" <de...@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
>
>
>
>
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
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 <ch...@gmail.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <di...@wso2.com>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com> wrote:
>
>Just forwarding the below question again, in case, it has not been received.
>>
>>
>>----- Forwarded Message -----
>>
>>From: Maria Beckham <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <di...@wso2.com>
>>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>>>>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>>>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>>>>To: "dev@stratos.apache.org" <de...@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
>
>
>
>
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by chris snow <ch...@gmail.com>.
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 <ma...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> wrote:
>
> Just forwarding the below question again, in case, it has not been
> received.
>
> ----- Forwarded Message -----
> *From:* Maria Beckham <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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
>
>
>
>
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
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 <di...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com> wrote:
Just forwarding the below question again, in case, it has not been received.
>
>
>----- Forwarded Message -----
>
>From: Maria Beckham <ma...@yahoo.com>
>To: "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <di...@wso2.com>
>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>>>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>>>To: "dev@stratos.apache.org" <de...@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
Re: Fw: tomcat and mysql cartridge(Please respond)
Posted by Dinesh Bandara <di...@wso2.com>.
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 <ma...@yahoo.com>
wrote:
> Just forwarding the below question again, in case, it has not been
> received.
>
> ----- Forwarded Message -----
> *From:* Maria Beckham <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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
Fw: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
Just forwarding the below question again, in case, it has not been received.
----- Forwarded Message -----
From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@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 <di...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <di...@wso2.com>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>>To: "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
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 <di...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <di...@wso2.com>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>>To: "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Dinesh Bandara <di...@wso2.com>.
I think I was not clear to you.
On Thu, Jun 26, 2014 at 12:09 PM, Maria Beckham <ma...@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 <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
thanks dinesh.
so basically, /mnt/packs is the repo for all the binaries of the modules right?
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?
________________________________
From: Dinesh Bandara <di...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Dinesh Bandara <di...@wso2.com>.
On Thu, Jun 26, 2014 at 12:12 PM, Maria Beckham <ma...@yahoo.com>
wrote:
> also, ur saying that one .json cartridge def file can have multiple types
> defined right?
>
> for example, if i have tomcat and mysql in cartridge instance. then one
> .json def file containing two types is enough to deploy to stratos right?
>
> One cartridge def only have one type.
If you want to install both tomcat and mysql in a single cartridge, you
have to write separate puppet manifest for that. then give that manifest
name as the type in cartridge def
> ------------------------------
> *From:* Dinesh Bandara <di...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
also, ur saying that one .json cartridge def file can have multiple types defined right?
for example, if i have tomcat and mysql in cartridge instance. then one .json def file containing two types is enough to deploy to stratos right?
________________________________
From: Dinesh Bandara <di...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
>>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>>To: "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Dinesh Bandara <di...@wso2.com>.
Please find my comment inline.
On Thu, Jun 26, 2014 at 10:26 AM, Maria Beckham <ma...@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 <ma...@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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
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",
b) How does .json would
like say we created a puppet manifest to have tomcat and mysql on same
cartridge?
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?
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'
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'
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
Please kindly respond with details of the working etc.
________________________________
From: Udara Liyanage <ud...@wso2.com>
To: dev@stratos.apache.org; Maria Beckham <ma...@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 <ma...@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 <ma...@yahoo.com>
>To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
>To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
>To: "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Udara Liyanage <ud...@wso2.com>.
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 <ma...@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 <ma...@yahoo.com>
> *To:* Maria Beckham <ma...@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@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 <ma...@yahoo.com>
> *To:* "dev@stratos.apache.org" <de...@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
Re: tomcat and mysql cartridge(Please respond)
Posted by Maria Beckham <ma...@yahoo.com>.
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 <ma...@yahoo.com>
To: Maria Beckham <ma...@yahoo.com>; "dev@stratos.apache.org" <de...@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 <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@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,
Re: tomcat and mysql cartridge
Posted by Maria Beckham <ma...@yahoo.com>.
I meant sample definition file on wiki docs is not helpful at this time.
________________________________
From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org>; Maria Beckham <ma...@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 <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@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,
Re: tomcat and mysql cartridge
Posted by Maria Beckham <ma...@yahoo.com>.
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 <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@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,