Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
  1. The IaaS provider implementation (e.g., org.wso2.carbon.stratos.iaas.VcloudIaas.java)should extend the Iaas abstract class provided by Cloud Controller. 
  2. Wrap the implementation in an OSGi bundle. It should be a fragment bundle of the Cloud Controller. This via your bundle's pom file.  
    Add the following line as a configuration instruction of maven bundle plugin:

    Code Block
    <Fragment-Host>{symbolic-name-of-cloud-controller}</Fragment-Host>

     

    {symbolic-name-of-cloud-controller} = org.wso2.carbon.stratos.cloud.controller
  3.  Add the cloud-controller component as a dependency in your bundle’s pom file. 
  4.  Drop the built bundle to {WSO2-CC}/repository/components/dropins/. Define the IaasProvider you are going to add and your implementation class in the Cloud Controller's cloud-controller.xml.
    Now, you can start using the newly added IaaS in your Cartridge.

    Example:

    Code Block
           <iaasProvider type="vcloud" name="vcloud specific details">
                  <className>org.wso2.carbon.stratos.iaas.VcloudIaas</className>
            <provider>vcloud</provider>
            <identity svns:secretAlias="cloud.controller.vcloud.identity"/>
            <credential svns:secretAlias="cloud.controller.vcloud.credential"/>
            <scaleUpOrder>1</scaleUpOrder>
            <scaleDownOrder>2</scaleDownOrder>
            <property name="securityGroups" value="default"/>
                  <property name="instanceType" value="m1.large"/>
                  <property name="keyPair" value="abc-key"/>
            <imageId>us-east-1/ami-abcdef123</imageId>
        </iaasProvider>