Hi Pradeep,

I missed one other thing. In the Cartridge XML we have a section called
iaasProvider. see sample below.

<iaasProvider type="openstack" >
                <imageId>RegionOne
/d6e5dbe9-f781-460d-b554-23a133a887cd</imageId>
                <property name="keyPair" value="stratos-demo"/>
                <property name="instanceType" value="RegionOne/1"/>
                <property name="securityGroups" value="default"/>
                <!--<property name="payload" value="resources/as.txt"/>-->
            </iaasProvider>

It can give a type, here in this sample its gave like type="openstack".

In the Cloud-controller.xml, you can define IaaS configuration, and this
type value is refereeing to the specific IaaS. that how we can say which
cartridge belongs to which IaaS.




On Sun, Sep 15, 2013 at 10:49 AM, Pradeep Fernando <[email protected]>wrote:

> Thanks Lakmal, for the explanation.
>
> --Pradeep
>
>
> On Sun, Sep 15, 2013 at 10:44 AM, Lakmal Warusawithana <[email protected]>wrote:
>
>> Hi Pradeep,
>>
>>
>> On Sun, Sep 15, 2013 at 10:38 AM, Pradeep Fernando 
>> <[email protected]>wrote:
>>
>>> Hi Devs,
>>>
>>> While listening to hangout on cloud-controller, the $subject came up..
>>> May be its a trivial thing. But I still can't get it.
>>>
>>> In the <cartridge>.xml config we can refer multiple IAASes.
>>>
>>> eg: tomat cartridge can refer EC2 and Openstack based IAASes.
>>>
>>> why cant multiple cartridges refer to same IAAS ? eg,
>>>
>>>
>>  It can. If you configure IaaS in the cloud controller (say IaaS A), and
>> then in the <cartridgeA>.xml, you need to give imageID of that cartridge,
>> which belongs to IaaS A. Likewise in the <cartridgeB>.xml you can give
>> imageID of that cartridge, that belongs to IaaS A. In that case CartridgeA
>> and CartridgeB will use same IaaS.
>>
>>
>>> tomcat cartridge refers to IAAS  'A'
>>> PHP cartridge refers to IAAS 'A' as well..
>>>
>>>
>>> thanks in advance,
>>> --Pradeep
>>>
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Software Architect; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>
>
> --
> Pradeep Fernando.
> http://pradeepfernando.blogspot.com/
>



-- 
Lakmal Warusawithana
Software Architect; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/

Reply via email to