- The IaaS provider implementation (e.g.,
org.wso2.carbon.stratos.iaas.VcloudIaas.java
)
should extend the Iaas abstract class provided by Cloud Controller. 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
- Add the
cloud-controller
component as a dependency in your bundle’spom
file. 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'scloud-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>
Page Comparison
Manage space
Manage content
Integrations