Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

This page is under construction.

Check with Lahiru

The difference between a Cartridge XML file for a Carbon and non-carbon XML file is the fact that non-carbon XML files have an additional section that defines port mapping.

 

Carbon Cartridge XML

 <cartridges>

 <cartridge type="appserver" host="appserver.stratos.wso2.com" provider="wso2" version="5.0.2" multiTenant="true">
 <displayName>WSO2 Application Server</displayName>
            <description>Enterprise-ready, scalable web services and web app hosting platform powered by Apache Axis2 and Apache Tomcat.</description>
           <iaasProvider type="ec2" > 
                <imageId>ap-southeast-1/ami-2f6d237d</imageId>
                <maxInstanceLimit>50</maxInstanceLimit>
                <property name="instanceType" value="m1.large"/>
            </iaasProvider>
            <deployment baseDir="/opt/wso2as">
                <dir>axis2modules=copy#app#files#here</dir>
                <dir>axis2services=copy#saml#libraries#here</dir>
                <dir>jaggeryapps=copy#saml#libraries#here</dir>
                <dir>jaxwebapps=copy#saml#libraries#here</dir>
                <dir>modulemetafiles=copy#saml#libraries#here</dir>
                <dir>servicemetafiles=copy#saml#libraries#here</dir>
                <dir>webapps=copy#saml#libraries#here</dir>
            </deployment>
           <portMapping>
               <http port="80" proxyPort="8280"/>
               <https port="443" proxyPort="8243"/>
           </portMapping>
        </cartridge>
    </cartridges>

 

Non-Carbon Cartridge XML

<cartridges>
        <cartridge type="php" host="php.stratos.wso2.com" provider="zend-provider" version="5.5" multiTenant="false">
            <displayName>PHP</displayName>
            <description>PHP Cartridge</description>
			<iaasProvider type="ec2" >
                <imageId>ap-southeast-1/ami-d0cc8382</imageId>
                <maxInstanceLimit>250</maxInstanceLimit>
                <property name="instanceType" value="t1.micro"/>
                <property name="securityGroups" value="default"/>
                <property name="instanceType" value="m1.large"/>
                <property name="payload" value="resources/as-ec2.txt"/>-->
            </iaasProvider>
            <deployment baseDir="/var/www">
                <dir>www=copy#app#files#here</dir>
                <dir>simplesamlphp=copy#saml#libraries#here</dir>
                <dir>sql=copy#saml#libraries#here</dir>
            </deployment>
           <portMapping>
               <http port="80" proxyPort="8280"/>
               <https port="443" proxyPort="8243"/>
           </portMapping>
        </cartridge>
    </cartridges>

 

Element Definitions

Click the respective element link for in-depth information.

 

 

cartridge

CriteriaDescription
XML Syntax
<cartridge>   
DescriptionDefines the various Cartridge elements available. There can be 1..n Cartridge elements.
Mandatory/OptionalMandatory
Attribute
type         
TypeString
Mandatory/OptionalMandatory
Attributehost
TypeString
Mandatory/Optional Mandatory
Attribute

provider

TypeString
Mandatory/OptionalMandatory
Attribute version
TypeString
Mandatory/OptionalMandatory
Elements

 

property
CriteriaDescription
XML Syntax
<property/>
DescriptionDefines the various Cartridge properties available.
Mandatory/OptionalOptional
Attribute
name        
TypeString
Mandatory/OptionalMandatory
Attributevalue
TypeString
Mandatory/OptionalMandatory

 

displayName
CriteriaDescription
XML Syntax
<displayName>
DescriptionCartridge name.
TypeString
Mandatory/OptionalOptional

 

description
CriteriaDescription
XML Syntax<description>
DescriptionCartridge description.
TypeString
Mandatory/OptionalOptional

 

iaasProvider
CriteriaDescription
XML Syntax<iaasProvider>
Description

A Cartridge element should add a reference to an existing IaaS provider or a completely new IaaS Provider needs to be created. This section is used to create a new IaaS Provider.

Mandatory/OptionalMandatory
Attributetype
DescriptionUnique attribute used when creating a new IaaS Provider.
TypeString
Mandatory/OptionalMandatory
ElementsimageId | property

 

imageId
CriteriaDescription
XML Syntax<imageId>
DescriptionUnique ID of the image.
TypeString
Mandatory/OptionalOptional  


property
CriteriaDescription
XML Syntax<property/>
DescriptionIn this case the property sub-element defines the properties of the IaaS provider. A Cartridge element can have 0..n properties. The properties specified under the matching iaasProvider child elements in the Cloud Controller XML will be overwritten by the properties specified under the matching iaasProvider child elements in the Cartridge XML.
Mandatory/OptionalOptional
Attributename
TypeString
Mandatory/OptionalMandatory
Attributevalue
TypeString
Mandatory/OptionalOptional

 

deployment
CriteriaDescription
XML Syntax

<deployment>

DescriptionThis is required for the GIT repo creation.
AttributebaseDir
DescriptionThis attribute should point to a valid path in the service instance, as it is the location from where a GIT repo is cloned.
TypeString
Mandatory/OptionalOptional
Elementsdir

 

dir
CriteriaDescription
XML Syntax<dir>
DescriptionAll directories that have to be created newly in the GIT repo can be added individually in this manner.
TypeString
Mandatory/OptionalOptional

 

portMapping
CriteriaDescription
XML Syntax<portMapping>
DescriptionThis element is required if the Cartridge is a non-carbon Cartridge.
Type

complex

Mandatory/OptionalOptional
Elementshttp | https


http
CriteriaDescription
XML Syntax<http/>
DescriptionPort mapping for http.
Mandatory/OptionalMandatory
Attributeport
Descriptionhttp port of the non-carbon Cartridge instance.
TypeString 
Mandatory/OptionalMandatory
AttributeproxyPort
Descriptionhttp port of the ELB
TypeString
Mandatory/OptionalMandatory

 

https
CriteriaDescription
XML Syntax<https/>
DescriptionPort mapping for https.
Mandatory/OptionalOptional
Attributeport
Descriptionhttps port of the non-carbon Cartridge instance.
TypeString 
Mandatory/OptionalMandatory
AttributeproxyPort
Descriptionhttp port of the ELB
TypeString
Mandatory/OptionalMandatory


appTypes
CriteriaDescription
XML Syntax<appTypes>
DescriptionDefines application types of a Cartridge that can be given a domain mapping (for example, in the WSO2 AppServer Cartridge the app types are Axis2Services, Webapps, JaxWebapps, and Jaggeryapps)
Mandatory/OptionalMandatory
ElementsappType


appType
CriteriaDescription
XML Syntax<appType>
DescriptionDefines application types individually.
TypeMandatory
Attribute name
DescriptionName of one of the folders that should be there in the server.
TypeString 
Mandatory/OptionalMandatory
Attribute appSpecificMapping
Description??
TypeString 
Mandatory/OptionalOptional
  • No labels