stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maria Beckham <mariabeckha...@yahoo.com>
Subject Re: tomcat and mysql cartridge(Please respond)
Date Thu, 26 Jun 2014 06:42:11 GMT
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 <dineshb@wso2.com>
To: dev <dev@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 <udara@wso2.com>
>To: dev@stratos.apache.org; Maria Beckham <mariabeckham77@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 <mariabeckham77@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 <mariabeckham77@yahoo.com>
>>To: Maria Beckham <mariabeckham77@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 <mariabeckham77@yahoo.com>
>>To: "dev@stratos.apache.org" <dev@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 <mariabeckham77@yahoo.com>
>>To: "dev@stratos.apache.org" <dev@stratos.apache.org> 
>>Sent: Wednesday, June 25, 2014 3:25 PM
>>Subject: tomcat and mysql cartridge
>> 
>>
>>
>>Hi All,
>>
>>
>>I am in process of creating a cartridge for tomcat and mysql.
>>
>>
>>can you provide cartridge defintion files for both. Bcoz, I am not sure whether to
specify tomcat download location, version etc to get installed, to provide install commands
etc when a cartridge vm is spawned. 
>>
>>
>>I would like to have a cartridge that would spawn a vm and install and run tomcat
etc. same thing for mysql.
>>
>>
>>Also, can we create one cartridge definition  that installs and run both tomcat and
mysql in one cartridige vm that gets spawned?
>>
>>
>>thanks,
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>-- 
>
>
>Udara Liyanage
>Software Engineer
>WSO2, Inc.: http://wso2.com
>lean. enterprise. middleware
>
>
>web: http://udaraliyanage.wordpress.com
>phone: +94 71 443 6897
>
>
>


-- 

Dinesh Bandara



Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Mime
View raw message