Repository: stratos
Updated Branches:
  refs/heads/master 5a3e530a5 -> 285bfa303


http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat.json
----------------------------------------------------------------------
diff --git 
a/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat.json 
b/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat.json
new file mode 100755
index 0000000..c376d92
--- /dev/null
+++ b/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat.json
@@ -0,0 +1,46 @@
+{
+    "type": "tomcat",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat",
+    "description": "tomcat Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "reka"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat1.json
----------------------------------------------------------------------
diff --git 
a/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat1.json 
b/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat1.json
new file mode 100755
index 0000000..84aa00a
--- /dev/null
+++ b/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat1.json
@@ -0,0 +1,46 @@
+{
+    "type": "tomcat1",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat1",
+    "description": "tomcat1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "reka"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat2.json
----------------------------------------------------------------------
diff --git 
a/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat2.json 
b/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat2.json
new file mode 100755
index 0000000..de6ed37
--- /dev/null
+++ b/samples/applications/single-group-v3/iaases/mock/artifacts/tomcat2.json
@@ -0,0 +1,46 @@
+{
+    "type": "tomcat2",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat2",
+    "description": "tomcat2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "reka"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/mock/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-v3/iaases/mock/deploy.sh 
b/samples/applications/single-group-v3/iaases/mock/deploy.sh
new file mode 100755
index 0000000..bef3de8
--- /dev/null
+++ b/samples/applications/single-group-v3/iaases/mock/deploy.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+export iaas="mock"                                             #[openstack, 
ec2, mock, kubernetes]
+export host_ip="localhost"
+
+export artifacts_path="../../artifacts"
+export cartridges_path="../../../../cartridges/${iaas}"
+export cartridges_groups_path="../../../../cartridges-groups"
+
+set -e
+
+# Adding autoscale policy
+pushd ${artifacts_path}
+echo "Adding autoscale policy..."
+curl -X POST -H "Content-Type: application/json" -d @'autoscale-policy.json' 
-k -v -u admin:admin https://${host_ip}:9443/api/autoscalingPolicies
+popd
+
+# Adding cartridges
+pushd ${cartridges_path}
+       # Adding tomcat cartridge
+echo "Adding tomcat cartridge..."
+curl -X POST -H "Content-Type: application/json" -d @'tomcat.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridges
+
+       # Adding tomcat1 cartridge
+echo "Adding tomcat1 cartridge..."
+curl -X POST -H "Content-Type: application/json" -d @'tomcat1.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridges
+
+       # Adding tomcat2 cartridge
+echo "Adding tomcat2 cartridge..."
+curl -X POST -H "Content-Type: application/json" -d @'tomcat2.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridges
+popd
+
+# Adding groups
+pushd ${cartridges_groups_path}
+       # Adding group6c5
+echo "Adding group6c5 group..."
+curl -X POST -H "Content-Type: application/json" -d @'group6c5.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridgeGroups
+popd
+
+sleep 3
+
+# Creating application
+pushd ${artifacts_path}
+echo "Creating application..."
+curl -X POST -H "Content-Type: application/json" -d @'app_single_group.json' 
-k -v -u admin:admin https://${host_ip}:9443/api/applications
+popd
+
+sleep 3
+
+# Deploy application
+echo "Deploying application..."
+curl -X POST -H "Content-Type: application/json" 
-d@'artifacts/dep_single_group.json' -k -v -u admin:admin 
https://${host_ip}:9443/api/applications/app_group_v1/deploy
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/mock/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-v3/iaases/mock/undeploy.sh 
b/samples/applications/single-group-v3/iaases/mock/undeploy.sh
new file mode 100644
index 0000000..828a7a6
--- /dev/null
+++ b/samples/applications/single-group-v3/iaases/mock/undeploy.sh
@@ -0,0 +1,29 @@
+undeploy.sh#!/bin/sh
+
+export host_ip="localhost"
+
+set -e
+
+# Undeploying application
+echo "Undeploying application..."
+curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/applications/app_group_v1/undeploy
+
+sleep 5
+
+# Deleting application
+echo "Deleting application..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/applications/app_group_v1
+
+# Removing groups
+echo "Removing groups..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridgeGroups/group6
+
+# Removing cartridges
+echo "Removing cartridges..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridges/tomcat
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridges/tomcat1
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridges/tomcat2
+
+# Removing autoscale policies
+echo "Removing autoscale policies..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/autoscalingPolicies/autoscale_policy_1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/openstack/artifacts/dep_single_group.json
----------------------------------------------------------------------
diff --git 
a/samples/applications/single-group-v3/iaases/openstack/artifacts/dep_single_group.json
 
b/samples/applications/single-group-v3/iaases/openstack/artifacts/dep_single_group.json
new file mode 100644
index 0000000..dd4d8c3
--- /dev/null
+++ 
b/samples/applications/single-group-v3/iaases/openstack/artifacts/dep_single_group.json
@@ -0,0 +1,41 @@
+{
+    "applicationId": "app_group_v1",
+    "applicationPolicy": {
+        "networkPartition": [
+            {
+                "id": "openstack_R1",
+                "activeByDefault": "true",
+                "partitions": [
+                    {
+                        "id": "P1",
+                        "provider": "openstack",
+                        "property": [
+                            {
+                                "name": "region",
+                                "value": "RegionOne"
+                            }
+                        ]
+                    }
+                ]
+            }
+        ]
+    },
+    "childPolicies": [
+        {
+            "alias": "mygroup6",
+            "networkPartition": [
+                {
+                    "id": "openstack_R1",
+                    "partitionAlgo": "one-after-another",
+                    "partitions": [
+                        {
+                            "id": "P1",
+                            "max": 5
+                        }
+                    ]
+                }
+            ]
+        }
+    ]
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/openstack/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-v3/iaases/openstack/deploy.sh 
b/samples/applications/single-group-v3/iaases/openstack/deploy.sh
new file mode 100755
index 0000000..ad41bd4
--- /dev/null
+++ b/samples/applications/single-group-v3/iaases/openstack/deploy.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+export iaas="openstack"                                                
#[openstack, ec2, mock, kubernetes]
+export host_ip="localhost"
+
+export artifacts_path="../../artifacts"
+export cartridges_path="../../../../cartridges/${iaas}"
+export cartridges_groups_path="../../../../cartridges-groups"
+
+set -e
+
+# Adding autoscale policy
+pushd ${artifacts_path}
+echo "Adding autoscale policy..."
+curl -X POST -H "Content-Type: application/json" -d @'autoscale-policy.json' 
-k -v -u admin:admin https://${host_ip}:9443/api/autoscalingPolicies
+popd
+
+# Adding cartridges
+pushd ${cartridges_path}
+       # Adding tomcat cartridge
+echo "Adding tomcat cartridge..."
+curl -X POST -H "Content-Type: application/json" -d @'tomcat.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridges
+
+       # Adding tomcat1 cartridge
+echo "Adding tomcat1 cartridge..."
+curl -X POST -H "Content-Type: application/json" -d @'tomcat1.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridges
+
+       # Adding tomcat2 cartridge
+echo "Adding tomcat2 cartridge..."
+curl -X POST -H "Content-Type: application/json" -d @'tomcat2.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridges
+popd
+
+# Adding groups
+pushd ${cartridges_groups_path}
+       # Adding group6c5
+echo "Adding group6c5 group..."
+curl -X POST -H "Content-Type: application/json" -d @'group6c5.json' -k -v -u 
admin:admin https://${host_ip}:9443/api/cartridgeGroups
+popd
+
+sleep 3
+
+# Creating application
+pushd ${artifacts_path}
+echo "Creating application..."
+curl -X POST -H "Content-Type: application/json" -d @'app_single_group.json' 
-k -v -u admin:admin https://${host_ip}:9443/api/applications
+popd
+
+sleep 3
+
+# Deploy application
+echo "Deploying application..."
+curl -X POST -H "Content-Type: application/json" 
-d@'artifacts/dep_single_group.json' -k -v -u admin:admin 
https://${host_ip}:9443/api/applications/app_group_v1/deploy
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/applications/single-group-v3/iaases/openstack/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-v3/iaases/openstack/undeploy.sh 
b/samples/applications/single-group-v3/iaases/openstack/undeploy.sh
new file mode 100644
index 0000000..4689464
--- /dev/null
+++ b/samples/applications/single-group-v3/iaases/openstack/undeploy.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+export host_ip="localhost"
+
+set -e
+
+# Undeploying application
+echo "Undeploying application..."
+curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/applications/app_group_v1/undeploy
+
+sleep 30
+
+# Deleting application
+echo "Deleting application..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/applications/app_group_v1
+
+# Removing groups
+echo "Removing groups..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridgeGroups/group6
+
+# Removing cartridges
+echo "Removing cartridges..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridges/tomcat
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridges/tomcat1
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/cartridges/tomcat2
+
+# Removing autoscale policies
+echo "Removing autoscale policies..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:9443/api/autoscalingPolicies/autoscale_policy_1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group1.json 
b/samples/cartridges-groups/group1.json
new file mode 100644
index 0000000..9acf5e6
--- /dev/null
+++ b/samples/cartridges-groups/group1.json
@@ -0,0 +1,35 @@
+{
+    "name": "group1",
+    "groups": [
+        {
+            "name": "group2",
+            "groupScalingEnabled": "true",
+            "cartridges": [
+                "c2",
+                "c3"
+            ],
+            "dependencies": {
+                "startupOrders": [
+                    "cartridge.c3,cartridge.c2"
+                ],
+                "scalingDependants": [
+                    "cartridge.c3, cartridge.c2"
+                ],
+                "terminationBehaviour": "terminate-all"
+            }
+        }
+    ],
+    "cartridges": [
+        "c1"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "cartridge.c1,group.group2"
+        ],
+        "scalingDependants": [
+            "cartridge.c1, group.group2"
+        ],
+        "terminationBehaviour": "terminate-dependents"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group1b.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group1b.json 
b/samples/cartridges-groups/group1b.json
new file mode 100644
index 0000000..d1d4267
--- /dev/null
+++ b/samples/cartridges-groups/group1b.json
@@ -0,0 +1,18 @@
+{
+    "name": "group2",
+    "groupScalingEnabled": "true",
+    "cartridges": [
+        "c2",
+        "c3"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "cartridge.c3,cartridge.c2"
+        ],
+        "scalingDependants": [
+            "cartridge.c3, cartridge.c2"
+        ],
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group6c.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group6c.json 
b/samples/cartridges-groups/group6c.json
new file mode 100644
index 0000000..74fea79
--- /dev/null
+++ b/samples/cartridges-groups/group6c.json
@@ -0,0 +1,21 @@
+{
+    "name": "group6",
+    "groups": [
+        {
+            "name": "group7",
+            "cartridges": [
+                "tomcat1"
+            ]
+        }
+    ],
+    "cartridges": [
+        "tomcat2"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "group.group7,cartridge.tomcat2"
+        ],
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group6c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group6c2.json 
b/samples/cartridges-groups/group6c2.json
new file mode 100644
index 0000000..cbba72b
--- /dev/null
+++ b/samples/cartridges-groups/group6c2.json
@@ -0,0 +1,15 @@
+{
+    "name": "group6",
+    "groupScalingEnabled": "true",
+    "cartridges": [
+        "esb",
+        "php"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "cartridge.esb,cartridge.php"
+        ],
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group6c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group6c3.json 
b/samples/cartridges-groups/group6c3.json
new file mode 100644
index 0000000..6a64b18
--- /dev/null
+++ b/samples/cartridges-groups/group6c3.json
@@ -0,0 +1,34 @@
+{
+    "name": "group6",
+    "groups": [
+        {
+            "name": "group7",
+            "cartridges": [
+                "tomcat1",
+                "tomcat2"
+            ],
+            "dependencies": {
+                "startupOrders": [
+                    "cartridge.tomcat1,cartridge.tomcat2"
+                ],
+                "terminationBehaviour": "terminate-all"
+            }
+        },
+        {
+            "name": "group8",
+            "cartridges": [
+                "tomcat1"
+            ]
+        }
+    ],
+    "cartridges": [
+        "tomcat2"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "group.group7,cartridge.tomcat2,group.group8"
+        ],
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group6c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group6c4.json 
b/samples/cartridges-groups/group6c4.json
new file mode 100644
index 0000000..a728456
--- /dev/null
+++ b/samples/cartridges-groups/group6c4.json
@@ -0,0 +1,11 @@
+{
+    "name": "group6",
+    "groupScalingEnabled": "true",
+    "cartridges": [
+        "tomcat"
+    ],
+    "dependencies": {
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group6c5.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group6c5.json 
b/samples/cartridges-groups/group6c5.json
new file mode 100644
index 0000000..8b0cac7
--- /dev/null
+++ b/samples/cartridges-groups/group6c5.json
@@ -0,0 +1,11 @@
+{
+    "name": "group6",
+    "groupScalingEnabled": "true",
+    "cartridges": [
+        "tomcat1"
+    ],
+    "dependencies": {
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group6c6.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group6c6.json 
b/samples/cartridges-groups/group6c6.json
new file mode 100644
index 0000000..85c2106
--- /dev/null
+++ b/samples/cartridges-groups/group6c6.json
@@ -0,0 +1,14 @@
+{
+    "name": "group6",
+    "cartridges": [
+        "tomcat2",
+        "tomcat1"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "cartridge.tomcat2,cartridge.tomcat1"
+        ],
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group8c.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group8c.json 
b/samples/cartridges-groups/group8c.json
new file mode 100644
index 0000000..fac2096
--- /dev/null
+++ b/samples/cartridges-groups/group8c.json
@@ -0,0 +1,21 @@
+{
+    "name": "group8",
+    "groups": [
+        {
+            "name": "group9",
+            "cartridges": [
+                "tomcat1"
+            ]
+        }
+    ],
+    "cartridges": [
+        "tomcat2"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "group.group9,cartridge.tomcat2"
+        ],
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges-groups/group8c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges-groups/group8c3.json 
b/samples/cartridges-groups/group8c3.json
new file mode 100644
index 0000000..3294aec
--- /dev/null
+++ b/samples/cartridges-groups/group8c3.json
@@ -0,0 +1,23 @@
+{
+    "name": "group8",
+    "groups": [
+        {
+            "name": "group9",
+            "cartridges": [
+                "tomcat1"
+            ]
+        }
+    ],
+    "cartridges": [
+        "tomcat2",
+        "tomcat1"
+    ],
+    "dependencies": {
+        "startupOrders": [
+            "group.group9,cartridge.tomcat2",
+            "group.group9,cartridge.tomcat1"
+        ],
+        "terminationBehaviour": "terminate-all"
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/c1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c1.json b/samples/cartridges/ec2/c1.json
new file mode 100755
index 0000000..8020bdd
--- /dev/null
+++ b/samples/cartridges/ec2/c1.json
@@ -0,0 +1,40 @@
+{
+    "type": "c1",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c1",
+    "description": "c1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c2.json b/samples/cartridges/ec2/c2.json
new file mode 100755
index 0000000..384ebc7
--- /dev/null
+++ b/samples/cartridges/ec2/c2.json
@@ -0,0 +1,40 @@
+{
+    "type": "c2",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c2",
+    "description": "c2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c3.json b/samples/cartridges/ec2/c3.json
new file mode 100755
index 0000000..886b7f4
--- /dev/null
+++ b/samples/cartridges/ec2/c3.json
@@ -0,0 +1,40 @@
+{
+    "type": "c3",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c3",
+    "description": "c3 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/c4.json b/samples/cartridges/ec2/c4.json
new file mode 100755
index 0000000..38cc646
--- /dev/null
+++ b/samples/cartridges/ec2/c4.json
@@ -0,0 +1,40 @@
+{
+    "type": "c4",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c4",
+    "description": "c4 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/esb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/esb.json b/samples/cartridges/ec2/esb.json
new file mode 100755
index 0000000..2a44e75
--- /dev/null
+++ b/samples/cartridges/ec2/esb.json
@@ -0,0 +1,40 @@
+{
+    "type": "esb",
+    "provider": "wso2",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "esb",
+    "description": "esb Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "manula"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/php.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/php.json b/samples/cartridges/ec2/php.json
new file mode 100755
index 0000000..f4c80b6
--- /dev/null
+++ b/samples/cartridges/ec2/php.json
@@ -0,0 +1,40 @@
+{
+    "type": "php",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "php",
+    "description": "php Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/tomcat.json 
b/samples/cartridges/ec2/tomcat.json
new file mode 100755
index 0000000..83acdc0
--- /dev/null
+++ b/samples/cartridges/ec2/tomcat.json
@@ -0,0 +1,40 @@
+{
+    "type": "tomcat",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat",
+    "description": "tomcat Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "manula"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/tomcat1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/tomcat1.json 
b/samples/cartridges/ec2/tomcat1.json
new file mode 100755
index 0000000..11bef87
--- /dev/null
+++ b/samples/cartridges/ec2/tomcat1.json
@@ -0,0 +1,41 @@
+{
+    "type": "tomcat1",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat1",
+    "description": "tomcat1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "manula"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/ec2/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/ec2/tomcat2.json 
b/samples/cartridges/ec2/tomcat2.json
new file mode 100755
index 0000000..e4a53a2
--- /dev/null
+++ b/samples/cartridges/ec2/tomcat2.json
@@ -0,0 +1,41 @@
+{
+    "type": "tomcat2",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat2",
+    "description": "tomcat2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "ec2",
+            "imageId": "ap-southeast-1/ami-3c0f5d6e",
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "m1.medium"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "manula"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "s2-2.0.0-rc1"
+                }
+            ]
+        }
+    ]
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/c1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c1.json 
b/samples/cartridges/kubernetes/c1.json
new file mode 100755
index 0000000..c60737d
--- /dev/null
+++ b/samples/cartridges/kubernetes/c1.json
@@ -0,0 +1,46 @@
+{
+    "type": "c1",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c1",
+    "description": "c1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c2.json 
b/samples/cartridges/kubernetes/c2.json
new file mode 100755
index 0000000..76dfd4b
--- /dev/null
+++ b/samples/cartridges/kubernetes/c2.json
@@ -0,0 +1,46 @@
+{
+    "type": "c2",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c2",
+    "description": "c2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c3.json 
b/samples/cartridges/kubernetes/c3.json
new file mode 100755
index 0000000..59a6388
--- /dev/null
+++ b/samples/cartridges/kubernetes/c3.json
@@ -0,0 +1,46 @@
+{
+    "type": "c3",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c3",
+    "description": "c3 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/c4.json 
b/samples/cartridges/kubernetes/c4.json
new file mode 100755
index 0000000..2032f67
--- /dev/null
+++ b/samples/cartridges/kubernetes/c4.json
@@ -0,0 +1,46 @@
+{
+    "type": "c4",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c4",
+    "description": "c4 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/esb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/esb.json 
b/samples/cartridges/kubernetes/esb.json
new file mode 100755
index 0000000..39bdf66
--- /dev/null
+++ b/samples/cartridges/kubernetes/esb.json
@@ -0,0 +1,34 @@
+{
+    "type": "esb",
+    "provider": "wso2",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "esb",
+    "description": "esb Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment":{
+       "baseDir":"/var/www"
+    },
+    "iaasProvider":[
+        {
+            "type":"kubernetes",
+            "imageId":"stratos/cartridge:4.1.0-alpha",
+            "networkInterfaces":[
+            {
+               "name":"network-non-routable",
+               "networkUuid":""
+            }
+            ],
+            "property":[
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/php.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/php.json 
b/samples/cartridges/kubernetes/php.json
new file mode 100755
index 0000000..52c0d72
--- /dev/null
+++ b/samples/cartridges/kubernetes/php.json
@@ -0,0 +1,34 @@
+{
+    "type": "php",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "php",
+    "description": "php Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment":{
+        "baseDir":"/var/www"
+    },
+    "iaasProvider":[
+       {
+          "type":"kubernetes",
+          "imageId":"stratos/cartridge:4.1.0-alpha",
+          "networkInterfaces":[
+             {
+                "name":"network-non-routable",
+                "networkUuid":""
+             }
+          ],
+          "property":[
+          ]
+       }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/tomcat.json 
b/samples/cartridges/kubernetes/tomcat.json
new file mode 100755
index 0000000..7d69413
--- /dev/null
+++ b/samples/cartridges/kubernetes/tomcat.json
@@ -0,0 +1,34 @@
+{
+    "type": "tomcat",
+    "provider": "apache",
+    "host": "isuruh.lk",
+    "category": "data",
+    "displayName": "tomcat",
+    "description": "tomcat Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment":{
+           "baseDir":"/var/www"
+    },
+    "iaasProvider":[
+        {
+            "type":"kubernetes",
+            "imageId":"stratos/cartridge:4.1.0-alpha",
+            "networkInterfaces":[
+            {
+                "name":"network-non-routable",
+                "networkUuid":""
+            }
+            ],
+            "property":[
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/tomcat1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/tomcat1.json 
b/samples/cartridges/kubernetes/tomcat1.json
new file mode 100755
index 0000000..9d0dd3c
--- /dev/null
+++ b/samples/cartridges/kubernetes/tomcat1.json
@@ -0,0 +1,34 @@
+{
+    "type": "tomcat1",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat1",
+    "description": "tomcat1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment":{
+           "baseDir":"/var/www"
+    },
+    "iaasProvider":[
+        {
+            "type":"kubernetes",
+            "imageId":"stratos/cartridge:4.1.0-alpha",
+            "networkInterfaces":[
+            {
+                "name":"network-non-routable",
+                "networkUuid":""
+            }
+            ],
+            "property":[
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/kubernetes/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/kubernetes/tomcat2.json 
b/samples/cartridges/kubernetes/tomcat2.json
new file mode 100755
index 0000000..bc744d7
--- /dev/null
+++ b/samples/cartridges/kubernetes/tomcat2.json
@@ -0,0 +1,34 @@
+{
+    "type": "tomcat2",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat2",
+    "description": "tomcat2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment":{
+           "baseDir":"/var/www"
+    },
+    "iaasProvider":[
+        {
+            "type":"kubernetes",
+            "imageId":"stratos/cartridge:4.1.0-alpha",
+            "networkInterfaces":[
+            {
+                "name":"network-non-routable",
+                "networkUuid":""
+            }
+            ],
+            "property":[
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/c1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c1.json b/samples/cartridges/mock/c1.json
new file mode 100755
index 0000000..c60737d
--- /dev/null
+++ b/samples/cartridges/mock/c1.json
@@ -0,0 +1,46 @@
+{
+    "type": "c1",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c1",
+    "description": "c1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c2.json b/samples/cartridges/mock/c2.json
new file mode 100755
index 0000000..76dfd4b
--- /dev/null
+++ b/samples/cartridges/mock/c2.json
@@ -0,0 +1,46 @@
+{
+    "type": "c2",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c2",
+    "description": "c2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c3.json b/samples/cartridges/mock/c3.json
new file mode 100755
index 0000000..59a6388
--- /dev/null
+++ b/samples/cartridges/mock/c3.json
@@ -0,0 +1,46 @@
+{
+    "type": "c3",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c3",
+    "description": "c3 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/c4.json b/samples/cartridges/mock/c4.json
new file mode 100755
index 0000000..2032f67
--- /dev/null
+++ b/samples/cartridges/mock/c4.json
@@ -0,0 +1,46 @@
+{
+    "type": "c4",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c4",
+    "description": "c4 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/esb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/esb.json b/samples/cartridges/mock/esb.json
new file mode 100755
index 0000000..0c24f9e
--- /dev/null
+++ b/samples/cartridges/mock/esb.json
@@ -0,0 +1,46 @@
+{
+    "type": "esb",
+    "provider": "wso2",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "esb",
+    "description": "esb Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "reka"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/php.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/php.json b/samples/cartridges/mock/php.json
new file mode 100755
index 0000000..272e6e8
--- /dev/null
+++ b/samples/cartridges/mock/php.json
@@ -0,0 +1,46 @@
+{
+    "type": "php",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "php",
+    "description": "php Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "reka"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/tomcat.json 
b/samples/cartridges/mock/tomcat.json
new file mode 100755
index 0000000..9fdca91
--- /dev/null
+++ b/samples/cartridges/mock/tomcat.json
@@ -0,0 +1,46 @@
+{
+    "type": "tomcat",
+    "provider": "apache",
+    "host": "isuruh.lk",
+    "category": "data",
+    "displayName": "tomcat",
+    "description": "tomcat Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/tomcat1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/tomcat1.json 
b/samples/cartridges/mock/tomcat1.json
new file mode 100755
index 0000000..84aa00a
--- /dev/null
+++ b/samples/cartridges/mock/tomcat1.json
@@ -0,0 +1,46 @@
+{
+    "type": "tomcat1",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat1",
+    "description": "tomcat1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "reka"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/mock/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/mock/tomcat2.json 
b/samples/cartridges/mock/tomcat2.json
new file mode 100755
index 0000000..de6ed37
--- /dev/null
+++ b/samples/cartridges/mock/tomcat2.json
@@ -0,0 +1,46 @@
+{
+    "type": "tomcat2",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat2",
+    "description": "tomcat2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "mock",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "reka"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/c1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/c1.json 
b/samples/cartridges/openstack/c1.json
new file mode 100755
index 0000000..2c78276
--- /dev/null
+++ b/samples/cartridges/openstack/c1.json
@@ -0,0 +1,46 @@
+{
+    "type": "c1",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c1",
+    "description": "c1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/c2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/c2.json 
b/samples/cartridges/openstack/c2.json
new file mode 100755
index 0000000..8b98f2e
--- /dev/null
+++ b/samples/cartridges/openstack/c2.json
@@ -0,0 +1,46 @@
+{
+    "type": "c2",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c2",
+    "description": "c2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/c3.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/c3.json 
b/samples/cartridges/openstack/c3.json
new file mode 100755
index 0000000..96d8b0f
--- /dev/null
+++ b/samples/cartridges/openstack/c3.json
@@ -0,0 +1,46 @@
+{
+    "type": "c3",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c3",
+    "description": "c3 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/c4.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/c4.json 
b/samples/cartridges/openstack/c4.json
new file mode 100755
index 0000000..b6af266
--- /dev/null
+++ b/samples/cartridges/openstack/c4.json
@@ -0,0 +1,46 @@
+{
+    "type": "c4",
+    "provider": "apache",
+    "host": "stratos.apache.org",
+    "category": "data",
+    "displayName": "c4",
+    "description": "c4 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/esb.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/esb.json 
b/samples/cartridges/openstack/esb.json
new file mode 100755
index 0000000..e6c4501
--- /dev/null
+++ b/samples/cartridges/openstack/esb.json
@@ -0,0 +1,45 @@
+{
+    "type": "esb",
+    "provider": "wso2",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "esb",
+    "description": "esb Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/a63609be-61df-436f-80bc-d2b6068a4c3a",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/php.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/php.json 
b/samples/cartridges/openstack/php.json
new file mode 100755
index 0000000..c46dc40
--- /dev/null
+++ b/samples/cartridges/openstack/php.json
@@ -0,0 +1,46 @@
+{
+    "type": "php",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "php",
+    "description": "php Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+            "networkInterfaces": [
+                {
+                    "name": "network-non-routable",
+                    "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                }
+            ],
+            "maxInstanceLimit": "2",
+            "property": [
+                {
+                    "name": "instanceType",
+                    "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+                },
+                {
+                    "name": "keyPair",
+                    "value": "vishanth-key"
+                },
+                {
+                    "name": "securityGroups",
+                    "value": "default"
+                }
+            ]
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/tomcat.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/tomcat.json 
b/samples/cartridges/openstack/tomcat.json
new file mode 100755
index 0000000..a393d58
--- /dev/null
+++ b/samples/cartridges/openstack/tomcat.json
@@ -0,0 +1,46 @@
+{
+    "type": "tomcat",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat",
+    "description": "tomcat Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/4c812285-d761-4208-b4b3-d453eace5aff",      
+           "networkInterfaces":[
+                   {
+                      "name":"network-non-routable",
+                      "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                   }
+                ],
+            "property": [
+           {
+               "name":"instanceType",
+               "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+            },
+            {
+               "name":"keyPair",
+               "value":"vishanth-key"
+            },
+            {
+               "name":"securityGroups",
+               "value":"default"
+            }
+            ]
+
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/tomcat1.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/tomcat1.json 
b/samples/cartridges/openstack/tomcat1.json
new file mode 100755
index 0000000..660a820
--- /dev/null
+++ b/samples/cartridges/openstack/tomcat1.json
@@ -0,0 +1,47 @@
+{
+    "type": "tomcat1",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat1",
+    "description": "tomcat1 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/4c812285-d761-4208-b4b3-d453eace5aff",
+           "networkInterfaces":[
+                   {
+                   "name":"network-non-routable",
+                           "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+                   }
+                ],     
+            "property": [
+            {
+               "name":"instanceType",
+               "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+            },
+            {
+               "name":"keyPair",
+               "value":"vishanth-key"
+            },
+            {
+               "name":"securityGroups",
+               "value":"default"
+            }
+
+            ]
+        }
+    ]
+}
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/1c966cbc/samples/cartridges/openstack/tomcat2.json
----------------------------------------------------------------------
diff --git a/samples/cartridges/openstack/tomcat2.json 
b/samples/cartridges/openstack/tomcat2.json
new file mode 100755
index 0000000..1bb2129
--- /dev/null
+++ b/samples/cartridges/openstack/tomcat2.json
@@ -0,0 +1,47 @@
+{
+    "type": "tomcat2",
+    "provider": "apache",
+    "category": "data",
+    "host": "isuruh.lk",
+    "displayName": "tomcat2",
+    "description": "tomcat2 Cartridge",
+    "version": "7",
+    "multiTenant": "false",
+    "portMapping": [
+        {
+            "protocol": "http",
+            "port": "22",
+            "proxyPort": "8280"
+        }
+    ],
+    "deployment": {
+    },
+    "iaasProvider": [
+        {
+            "type": "openstack",
+            "imageId": "RegionOne/4c812285-d761-4208-b4b3-d453eace5aff",
+            "networkInterfaces":[
+               {
+                      "name":"network-non-routable",
+                              
"networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+               }
+              ],
+            "property": [
+            {
+               "name":"instanceType",
+               "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+            },
+            {
+               "name":"keyPair",
+               "value":"vishanth-key"
+            },
+            {
+               "name":"securityGroups",
+               "value":"default"
+            }
+
+            ]
+        }
+    ]
+}
+

Reply via email to