Restructuring the Sample Application Removing the old samples
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/d7f100da Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/d7f100da Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/d7f100da Branch: refs/heads/master Commit: d7f100dafb3b96491695d397ed5154762b0e7b6c Parents: 1c966cb Author: Vishanth <[email protected]> Authored: Tue Jan 27 14:50:26 2015 +0530 Committer: Imesh Gunaratne <[email protected]> Committed: Tue Jan 27 18:05:10 2015 +0530 ---------------------------------------------------------------------- .../mock/artifacts/application_definition.json | 108 ---------- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/deployment-policy.json | 71 ------- .../mock/artifacts/group6c.json | 21 -- .../mock/artifacts/group8c.json | 21 -- .../complex-app-with-lb/mock/artifacts/lb.json | 46 ----- .../mock/artifacts/tomcat1.json | 46 ----- .../mock/artifacts/tomcat2.json | 46 ----- samples/complex-app-with-lb/mock/deploy.sh | 35 ---- samples/complex-app-with-lb/mock/undeploy.sh | 4 - samples/complex-app/README.md | 6 - .../ec2/artifacts/application_definition.json | 98 ---------- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/deployment-policy.json | 71 ------- samples/complex-app/ec2/artifacts/group6c.json | 21 -- samples/complex-app/ec2/artifacts/group8c.json | 21 -- samples/complex-app/ec2/artifacts/tomcat.json | 40 ---- samples/complex-app/ec2/artifacts/tomcat1.json | 41 ---- samples/complex-app/ec2/artifacts/tomcat2.json | 41 ---- samples/complex-app/ec2/deploy.sh | 36 ---- samples/complex-app/ec2/undeploy.sh | 4 - .../artifacts/application_definition.json | 128 ------------ .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/deployment-policy.json | 72 ------- .../kubernetes/artifacts/group6c.json | 21 -- .../kubernetes/artifacts/group8c.json | 21 -- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/tomcat.json | 34 ---- .../kubernetes/artifacts/tomcat1.json | 34 ---- .../kubernetes/artifacts/tomcat2.json | 34 ---- samples/complex-app/kubernetes/deploy.sh | 35 ---- samples/complex-app/kubernetes/undeploy.sh | 4 - .../mock/artifacts/application_definition.json | 98 ---------- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/deployment-policy.json | 71 ------- samples/complex-app/mock/artifacts/group6c.json | 21 -- samples/complex-app/mock/artifacts/group8c.json | 21 -- samples/complex-app/mock/artifacts/tomcat.json | 46 ----- samples/complex-app/mock/artifacts/tomcat1.json | 46 ----- samples/complex-app/mock/artifacts/tomcat2.json | 46 ----- samples/complex-app/mock/deploy.sh | 35 ---- samples/complex-app/mock/undeploy.sh | 4 - .../artifacts/application_definition.json | 98 ---------- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/deployment-policy.json | 71 ------- .../openstack/artifacts/group6c.json | 21 -- .../openstack/artifacts/group8c.json | 21 -- .../complex-app/openstack/artifacts/tomcat.json | 46 ----- .../openstack/artifacts/tomcat1.json | 47 ----- .../openstack/artifacts/tomcat2.json | 47 ----- samples/complex-app/openstack/deploy.sh | 36 ---- samples/complex-app/openstack/undeploy.sh | 4 - .../ec2/artifacts/app_dependency_scaling.json | 32 --- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/dep_dependency_scaling.json | 56 ------ .../sample-cartridges/ec2/artifacts/tomcat.json | 40 ---- .../ec2/artifacts/tomcat1.json | 41 ---- .../sample-cartridges/ec2/deploy.sh | 14 -- .../sample-cartridges/ec2/undeploy.sh | 4 - .../artifacts/app_dependency_scaling.json | 44 ----- .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../artifacts/dep_dependency_scaling.json | 56 ------ .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/php.json | 34 ---- .../kubernetes/artifacts/tomcat.json | 34 ---- .../sample-cartridges/kubernetes/deploy.sh | 19 -- .../sample-cartridges/kubernetes/undeploy.sh | 5 - .../mock/artifacts/app_dependency_scaling.json | 32 --- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/dep_dependency_scaling.json | 55 ------ .../sample-cartridges/mock/artifacts/php.json | 46 ----- .../mock/artifacts/tomcat.json | 46 ----- .../sample-cartridges/mock/deploy.sh | 19 -- .../sample-cartridges/mock/undeploy.sh | 5 - .../artifacts/app_dependency_scaling.json | 32 --- .../openstack/artifacts/autoscale-policy.json | 14 -- .../artifacts/dep_dependency_scaling.json | 56 ------ .../openstack/artifacts/tomcat.json | 45 ----- .../openstack/artifacts/tomcat1.json | 46 ----- .../sample-cartridges/openstack/deploy.sh | 19 -- .../sample-cartridges/openstack/undeploy.sh | 5 - .../ec2/artifacts/app_single_group.json | 52 ----- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/dep_single_group.json | 56 ------ .../sample-groups/ec2/artifacts/esb.json | 40 ---- .../sample-groups/ec2/artifacts/group6c.json | 15 -- .../sample-groups/ec2/artifacts/php.json | 40 ---- .../sample-groups/ec2/artifacts/tomcat.json | 40 ---- .../sample-groups/ec2/deploy.sh | 17 -- .../sample-groups/ec2/undeploy.sh | 4 - .../kubernetes/artifacts/app_single_group.json | 70 ------- .../artifacts/app_single_group.json-para | 58 ------ .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/dep_single_group.json | 57 ------ .../sample-groups/kubernetes/artifacts/esb.json | 34 ---- .../kubernetes/artifacts/group6c.json | 15 -- .../artifacts/kubernetes-cluster.json | 55 ------ .../sample-groups/kubernetes/artifacts/php.json | 34 ---- .../kubernetes/artifacts/tomcat.json | 34 ---- .../sample-groups/kubernetes/deploy.sh | 18 -- .../sample-groups/kubernetes/undeploy.sh | 4 - .../mock/artifacts/app_single_group.json | 52 ----- .../mock/artifacts/app_single_group.json-para | 46 ----- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/dep_single_group.json | 56 ------ .../sample-groups/mock/artifacts/esb.json | 46 ----- .../sample-groups/mock/artifacts/group6c.json | 15 -- .../sample-groups/mock/artifacts/php.json | 46 ----- .../sample-groups/mock/artifacts/tomcat.json | 46 ----- .../sample-groups/mock/deploy.sh | 18 -- .../sample-groups/mock/undeploy.sh | 4 - .../openstack/artifacts/app_single_group.json | 52 ----- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/dep_single_group.json | 56 ------ .../sample-groups/openstack/artifacts/esb.json | 45 ----- .../openstack/artifacts/group6c.json | 15 -- .../sample-groups/openstack/artifacts/php.json | 45 ----- .../openstack/artifacts/tomcat.json | 45 ----- .../sample-groups/openstack/deploy.sh | 17 -- .../sample-groups/openstack/undeploy.sh | 4 - .../ec2/artifacts/app_deployment_policy.json | 67 ------- .../ec2/artifacts/autoscale-policy-c1.json | 14 -- .../ec2/artifacts/autoscale-policy-c2.json | 14 -- .../ec2/artifacts/autoscale-policy-c3.json | 14 -- .../ec2/artifacts/autoscale-policy-c4.json | 14 -- samples/group-scaling-v1/ec2/artifacts/c1.json | 40 ---- samples/group-scaling-v1/ec2/artifacts/c2.json | 40 ---- samples/group-scaling-v1/ec2/artifacts/c3.json | 40 ---- samples/group-scaling-v1/ec2/artifacts/c4.json | 40 ---- .../ec2/artifacts/composite_application.json | 35 ---- .../group-scaling-v1/ec2/artifacts/group1.json | 18 -- samples/group-scaling-v1/ec2/deploy.sh | 31 --- samples/group-scaling-v1/ec2/undeploy.sh | 5 - .../artifacts/app_deployment_policy.json | 68 ------- .../artifacts/autoscale-policy-c1.json | 14 -- .../artifacts/autoscale-policy-c2.json | 14 -- .../artifacts/autoscale-policy-c3.json | 14 -- .../artifacts/autoscale-policy-c4.json | 14 -- .../kubernetes/artifacts/c1.json | 34 ---- .../kubernetes/artifacts/c2.json | 34 ---- .../kubernetes/artifacts/c3.json | 34 ---- .../kubernetes/artifacts/c4.json | 34 ---- .../artifacts/composite_application.json | 47 ----- .../kubernetes/artifacts/group1.json | 18 -- .../artifacts/kubernetes-cluster.json | 55 ------ samples/group-scaling-v1/kubernetes/deploy.sh | 31 --- samples/group-scaling-v1/kubernetes/undeploy.sh | 5 - .../mock/artifacts/app_deployment_policy.json | 67 ------- .../mock/artifacts/autoscale-policy-c1.json | 14 -- .../mock/artifacts/autoscale-policy-c2.json | 14 -- .../mock/artifacts/autoscale-policy-c3.json | 14 -- .../mock/artifacts/autoscale-policy-c4.json | 14 -- samples/group-scaling-v1/mock/artifacts/c1.json | 46 ----- samples/group-scaling-v1/mock/artifacts/c2.json | 46 ----- samples/group-scaling-v1/mock/artifacts/c3.json | 46 ----- samples/group-scaling-v1/mock/artifacts/c4.json | 46 ----- .../mock/artifacts/composite_application.json | 35 ---- .../group-scaling-v1/mock/artifacts/group1.json | 18 -- samples/group-scaling-v1/mock/deploy.sh | 31 --- samples/group-scaling-v1/mock/undeploy.sh | 5 - .../artifacts/app_deployment_policy.json | 67 ------- .../artifacts/autoscale-policy-c1.json | 14 -- .../artifacts/autoscale-policy-c2.json | 14 -- .../artifacts/autoscale-policy-c3.json | 14 -- .../artifacts/autoscale-policy-c4.json | 14 -- .../openstack/artifacts/c1.json | 46 ----- .../openstack/artifacts/c2.json | 46 ----- .../openstack/artifacts/c3.json | 46 ----- .../openstack/artifacts/c4.json | 46 ----- .../artifacts/composite_application.json | 35 ---- .../openstack/artifacts/group1.json | 18 -- samples/group-scaling-v1/openstack/deploy.sh | 31 --- samples/group-scaling-v1/openstack/undeploy.sh | 5 - .../ec2/artifacts/app_deployment_policy.json | 71 ------- .../ec2/artifacts/autoscale-policy-c1.json | 14 -- .../ec2/artifacts/autoscale-policy-c2.json | 14 -- .../ec2/artifacts/autoscale-policy-c3.json | 14 -- .../ec2/artifacts/autoscale-policy-c4.json | 14 -- samples/group-scaling/ec2/artifacts/c1.json | 40 ---- samples/group-scaling/ec2/artifacts/c2.json | 40 ---- samples/group-scaling/ec2/artifacts/c3.json | 40 ---- samples/group-scaling/ec2/artifacts/c4.json | 40 ---- .../ec2/artifacts/composite_application.json | 71 ------- samples/group-scaling/ec2/artifacts/group1.json | 35 ---- samples/group-scaling/ec2/deploy.sh | 30 --- samples/group-scaling/ec2/undeploy.sh | 4 - .../artifacts/app_deployment_policy.json | 72 ------- .../artifacts/autoscale-policy-c1.json | 14 -- .../artifacts/autoscale-policy-c2.json | 14 -- .../artifacts/autoscale-policy-c3.json | 14 -- .../artifacts/autoscale-policy-c4.json | 14 -- .../group-scaling/kubernetes/artifacts/c1.json | 46 ----- .../group-scaling/kubernetes/artifacts/c2.json | 46 ----- .../group-scaling/kubernetes/artifacts/c3.json | 46 ----- .../group-scaling/kubernetes/artifacts/c4.json | 46 ----- .../artifacts/composite_application.json | 95 --------- .../kubernetes/artifacts/group1.json | 35 ---- .../artifacts/kubernetes-cluster.json | 55 ------ samples/group-scaling/kubernetes/deploy.sh | 30 --- samples/group-scaling/kubernetes/undeploy.sh | 4 - .../mock/artifacts/app_deployment_policy.json | 71 ------- .../mock/artifacts/autoscale-policy-c1.json | 14 -- .../mock/artifacts/autoscale-policy-c2.json | 14 -- .../mock/artifacts/autoscale-policy-c3.json | 14 -- .../mock/artifacts/autoscale-policy-c4.json | 14 -- samples/group-scaling/mock/artifacts/c1.json | 46 ----- samples/group-scaling/mock/artifacts/c2.json | 46 ----- samples/group-scaling/mock/artifacts/c3.json | 46 ----- samples/group-scaling/mock/artifacts/c4.json | 46 ----- .../mock/artifacts/composite_application.json | 71 ------- .../group-scaling/mock/artifacts/group1.json | 35 ---- samples/group-scaling/mock/deploy.sh | 30 --- samples/group-scaling/mock/undeploy.sh | 4 - .../artifacts/app_deployment_policy.json | 71 ------- .../artifacts/autoscale-policy-c1.json | 14 -- .../artifacts/autoscale-policy-c2.json | 14 -- .../artifacts/autoscale-policy-c3.json | 14 -- .../artifacts/autoscale-policy-c4.json | 14 -- .../group-scaling/openstack/artifacts/c1.json | 46 ----- .../group-scaling/openstack/artifacts/c2.json | 46 ----- .../group-scaling/openstack/artifacts/c3.json | 46 ----- .../group-scaling/openstack/artifacts/c4.json | 46 ----- .../artifacts/composite_application.json | 71 ------- .../openstack/artifacts/group1.json | 35 ---- samples/group-scaling/openstack/deploy.sh | 30 --- samples/group-scaling/openstack/undeploy.sh | 4 - samples/more-complex-app/README.md | 11 -- .../ec2/artifacts/application_definition.json | 141 -------------- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/deployment-policy.json | 87 --------- .../more-complex-app/ec2/artifacts/group6c.json | 34 ---- .../more-complex-app/ec2/artifacts/group8c.json | 23 --- .../more-complex-app/ec2/artifacts/tomcat.json | 40 ---- .../more-complex-app/ec2/artifacts/tomcat1.json | 41 ---- .../more-complex-app/ec2/artifacts/tomcat2.json | 41 ---- samples/more-complex-app/ec2/deploy.sh | 26 --- samples/more-complex-app/ec2/undeploy.sh | 4 - .../artifacts/application_definition.json | 195 ------------------- .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/deployment-policy.json | 88 --------- .../kubernetes/artifacts/group6c.json | 34 ---- .../kubernetes/artifacts/group8c.json | 23 --- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/tomcat.json | 34 ---- .../kubernetes/artifacts/tomcat1.json | 34 ---- .../kubernetes/artifacts/tomcat2.json | 34 ---- samples/more-complex-app/kubernetes/deploy.sh | 40 ---- samples/more-complex-app/kubernetes/undeploy.sh | 4 - .../mock/artifacts/application_definition.json | 141 -------------- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/deployment-policy.json | 87 --------- .../mock/artifacts/group6c.json | 34 ---- .../mock/artifacts/group8c.json | 23 --- .../more-complex-app/mock/artifacts/tomcat.json | 46 ----- .../mock/artifacts/tomcat1.json | 46 ----- .../mock/artifacts/tomcat2.json | 46 ----- samples/more-complex-app/mock/deploy.sh | 40 ---- samples/more-complex-app/mock/undeploy.sh | 4 - .../artifacts/application_definition.json | 141 -------------- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/deployment-policy.json | 87 --------- .../openstack/artifacts/group6c.json | 34 ---- .../openstack/artifacts/group8c.json | 23 --- .../openstack/artifacts/tomcat.json | 46 ----- .../openstack/artifacts/tomcat1.json | 46 ----- .../openstack/artifacts/tomcat2.json | 46 ----- samples/more-complex-app/openstack/deploy.sh | 40 ---- samples/more-complex-app/openstack/undeploy.sh | 4 - samples/nested-group/README.md | 8 - .../ec2/artifacts/application_definition.json | 62 ------ .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/deployment-policy.json | 55 ------ samples/nested-group/ec2/artifacts/group6c.json | 21 -- samples/nested-group/ec2/artifacts/tomcat.json | 40 ---- samples/nested-group/ec2/artifacts/tomcat1.json | 41 ---- samples/nested-group/ec2/artifacts/tomcat2.json | 41 ---- samples/nested-group/ec2/deploy.sh | 25 --- samples/nested-group/ec2/undeploy.sh | 5 - .../artifacts/application_definition.json | 80 -------- .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/deployment-policy.json | 56 ------ .../kubernetes/artifacts/group6c.json | 21 -- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/tomcat.json | 34 ---- .../kubernetes/artifacts/tomcat1.json | 34 ---- .../kubernetes/artifacts/tomcat2.json | 34 ---- samples/nested-group/kubernetes/deploy.sh | 25 --- samples/nested-group/kubernetes/undeploy.sh | 4 - .../mock/artifacts/application_definition.json | 62 ------ .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/deployment-policy.json | 55 ------ .../nested-group/mock/artifacts/group6c.json | 21 -- samples/nested-group/mock/artifacts/tomcat.json | 46 ----- .../nested-group/mock/artifacts/tomcat1.json | 46 ----- .../nested-group/mock/artifacts/tomcat2.json | 46 ----- samples/nested-group/mock/deploy.sh | 25 --- samples/nested-group/mock/undeploy.sh | 4 - .../artifacts/application_definition.json | 62 ------ .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/deployment-policy.json | 55 ------ .../openstack/artifacts/group6c.json | 21 -- .../openstack/artifacts/tomcat.json | 46 ----- .../openstack/artifacts/tomcat1.json | 46 ----- .../openstack/artifacts/tomcat2.json | 46 ----- samples/nested-group/openstack/deploy.sh | 25 --- samples/nested-group/openstack/undeploy.sh | 4 - samples/single-cartridge/README.md | 8 - .../ec2/artifacts/app_single_group.json | 19 -- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/dep_single_group.json | 41 ---- .../single-cartridge/ec2/artifacts/tomcat.json | 40 ---- samples/single-cartridge/ec2/deploy.sh | 11 -- samples/single-cartridge/ec2/undeploy.sh | 3 - .../kubernetes/artifacts/application.json | 23 --- .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/deployment-policy.json | 40 ---- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/php-cartridge.json | 34 ---- samples/single-cartridge/kubernetes/deploy.sh | 25 --- .../kubernetes/get-application.sh | 3 - .../kubernetes/get-deployment-policy.sh | 3 - .../kubernetes/list-applications.sh | 3 - samples/single-cartridge/kubernetes/undeploy.sh | 5 - .../mock/add-domain-mappings.sh | 2 - .../mock/add-network-partition.sh | 2 - .../mock/artifacts/application-signup.json | 18 -- .../mock/artifacts/application.json | 24 --- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/deployment-policy.json | 41 ---- .../mock/artifacts/domain-mappings.json | 9 - .../mock/artifacts/network-partition.json | 16 -- .../mock/artifacts/tomcat-cartridge.json | 46 ----- samples/single-cartridge/mock/deploy.sh | 20 -- .../mock/list-domain-mappings.sh | 2 - .../mock/list-network-partitions.sh | 2 - samples/single-cartridge/mock/undeploy.sh | 5 - .../openstack/artifacts/app_single_group.json | 18 -- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/dep_single_group.json | 41 ---- .../openstack/artifacts/tomcat.json | 46 ----- samples/single-cartridge/openstack/deploy.sh | 12 -- samples/single-cartridge/openstack/undeploy.sh | 3 - .../ec2/artifacts/app_single_group.json | 26 --- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/dep_single_group.json | 41 ---- .../ec2/artifacts/group6c.json | 11 -- .../ec2/artifacts/tomcat.json | 40 ---- .../single-group-group-scaling/ec2/deploy.sh | 16 -- .../single-group-group-scaling/ec2/undeploy.sh | 5 - .../kubernetes/artifacts/app_single_group.json | 32 --- .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/dep_single_group.json | 42 ---- .../kubernetes/artifacts/group6c.json | 11 -- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/tomcat.json | 34 ---- .../kubernetes/deploy.sh | 16 -- .../kubernetes/undeploy.sh | 5 - .../mock/artifacts/app_single_group.json | 26 --- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/dep_single_group.json | 41 ---- .../mock/artifacts/group6c.json | 11 -- .../mock/artifacts/tomcat.json | 46 ----- .../single-group-group-scaling/mock/deploy.sh | 16 -- .../single-group-group-scaling/mock/undeploy.sh | 5 - .../openstack/artifacts/app_single_group.json | 26 --- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/dep_single_group.json | 41 ---- .../openstack/artifacts/group6c.json | 11 -- .../openstack/artifacts/tomcat.json | 46 ----- .../openstack/deploy.sh | 16 -- .../openstack/undeploy.sh | 5 - samples/single-group-v1/README.md | 7 - .../ec2/artifacts/app_single_group.json | 43 ---- .../ec2/artifacts/app_single_group.json-para | 46 ----- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/dep_single_group.json | 56 ------ .../single-group-v1/ec2/artifacts/group6c.json | 11 -- .../single-group-v1/ec2/artifacts/tomcat.json | 40 ---- .../single-group-v1/ec2/artifacts/tomcat1.json | 41 ---- .../single-group-v1/ec2/artifacts/tomcat2.json | 41 ---- samples/single-group-v1/ec2/deploy.sh | 16 -- samples/single-group-v1/ec2/undeploy.sh | 4 - .../kubernetes/artifacts/app_single_group.json | 55 ------ .../artifacts/app_single_group.json-para | 46 ----- .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/dep_single_group.json | 57 ------ .../kubernetes/artifacts/group6c.json | 11 -- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/tomcat.json | 34 ---- .../kubernetes/artifacts/tomcat1.json | 34 ---- .../kubernetes/artifacts/tomcat2.json | 34 ---- samples/single-group-v1/kubernetes/deploy.sh | 16 -- samples/single-group-v1/kubernetes/undeploy.sh | 4 - .../mock/artifacts/app_single_group.json | 43 ---- .../mock/artifacts/app_single_group.json-para | 46 ----- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/dep_single_group.json | 56 ------ .../single-group-v1/mock/artifacts/group6c.json | 11 -- .../single-group-v1/mock/artifacts/tomcat.json | 46 ----- .../single-group-v1/mock/artifacts/tomcat1.json | 46 ----- .../single-group-v1/mock/artifacts/tomcat2.json | 46 ----- samples/single-group-v1/mock/deploy.sh | 16 -- samples/single-group-v1/mock/undeploy.sh | 4 - .../openstack/artifacts/app_single_group.json | 43 ---- .../artifacts/app_single_group.json-para | 46 ----- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/dep_single_group.json | 56 ------ .../openstack/artifacts/group6c.json | 11 -- .../openstack/artifacts/tomcat.json | 46 ----- .../openstack/artifacts/tomcat1.json | 46 ----- .../openstack/artifacts/tomcat2.json | 46 ----- samples/single-group-v1/openstack/deploy.sh | 16 -- samples/single-group-v1/openstack/undeploy.sh | 4 - samples/single-group-v2/README.md | 7 - .../ec2/artifacts/app_single_group.json | 52 ----- .../ec2/artifacts/app_single_group.json-para | 46 ----- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/dep_single_group.json | 56 ------ .../single-group-v2/ec2/artifacts/group6c.json | 14 -- .../single-group-v2/ec2/artifacts/tomcat.json | 40 ---- .../single-group-v2/ec2/artifacts/tomcat1.json | 41 ---- .../single-group-v2/ec2/artifacts/tomcat2.json | 41 ---- samples/single-group-v2/ec2/deploy.sh | 17 -- samples/single-group-v2/ec2/undeploy.sh | 4 - .../kubernetes/artifacts/app_single_group.json | 70 ------- .../artifacts/app_single_group.json-para | 64 ------ .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/dep_single_group.json | 57 ------ .../kubernetes/artifacts/group6c.json | 14 -- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/tomcat.json | 34 ---- .../kubernetes/artifacts/tomcat1.json | 34 ---- .../kubernetes/artifacts/tomcat2.json | 34 ---- samples/single-group-v2/kubernetes/deploy.sh | 17 -- samples/single-group-v2/kubernetes/undeploy.sh | 4 - .../mock/artifacts/app_single_group.json | 52 ----- .../mock/artifacts/app_single_group.json-para | 46 ----- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/dep_single_group.json | 56 ------ .../single-group-v2/mock/artifacts/group6c.json | 14 -- .../single-group-v2/mock/artifacts/tomcat.json | 46 ----- .../single-group-v2/mock/artifacts/tomcat1.json | 46 ----- .../single-group-v2/mock/artifacts/tomcat2.json | 46 ----- samples/single-group-v2/mock/deploy.sh | 17 -- samples/single-group-v2/mock/undeploy.sh | 4 - .../openstack/artifacts/app_single_group.json | 52 ----- .../artifacts/app_single_group.json-para | 46 ----- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/dep_single_group.json | 56 ------ .../openstack/artifacts/group6c.json | 14 -- .../openstack/artifacts/tomcat.json | 46 ----- .../openstack/artifacts/tomcat1.json | 46 ----- .../openstack/artifacts/tomcat2.json | 46 ----- samples/single-group-v2/openstack/deploy.sh | 17 -- samples/single-group-v2/openstack/undeploy.sh | 4 - .../ec2/artifacts/app_single_group.json | 27 --- .../ec2/artifacts/app_single_group.json-para | 46 ----- .../ec2/artifacts/autoscale-policy.json | 14 -- .../ec2/artifacts/dep_single_group.json | 41 ---- .../single-group-v3/ec2/artifacts/group6c.json | 11 -- .../single-group-v3/ec2/artifacts/tomcat.json | 40 ---- .../single-group-v3/ec2/artifacts/tomcat1.json | 41 ---- .../single-group-v3/ec2/artifacts/tomcat2.json | 41 ---- samples/single-group-v3/ec2/deploy.sh | 15 -- samples/single-group-v3/ec2/undeploy.sh | 4 - .../kubernetes/artifacts/app_single_group.json | 33 ---- .../artifacts/app_single_group.json-para | 64 ------ .../kubernetes/artifacts/autoscale-policy.json | 14 -- .../kubernetes/artifacts/dep_single_group.json | 42 ---- .../kubernetes/artifacts/group6c.json | 11 -- .../artifacts/kubernetes-cluster.json | 55 ------ .../kubernetes/artifacts/tomcat.json | 34 ---- .../kubernetes/artifacts/tomcat1.json | 34 ---- .../kubernetes/artifacts/tomcat2.json | 34 ---- samples/single-group-v3/kubernetes/deploy.sh | 15 -- samples/single-group-v3/kubernetes/undeploy.sh | 4 - .../mock/artifacts/app_single_group.json | 27 --- .../mock/artifacts/app_single_group.json-para | 46 ----- .../mock/artifacts/autoscale-policy.json | 14 -- .../mock/artifacts/dep_single_group.json | 41 ---- .../single-group-v3/mock/artifacts/group6c.json | 11 -- .../single-group-v3/mock/artifacts/tomcat.json | 46 ----- .../single-group-v3/mock/artifacts/tomcat1.json | 46 ----- .../single-group-v3/mock/artifacts/tomcat2.json | 46 ----- samples/single-group-v3/mock/deploy.sh | 15 -- samples/single-group-v3/mock/undeploy.sh | 4 - .../openstack/artifacts/app_single_group.json | 27 --- .../artifacts/app_single_group.json-para | 46 ----- .../openstack/artifacts/autoscale-policy.json | 14 -- .../openstack/artifacts/dep_single_group.json | 41 ---- .../openstack/artifacts/group6c.json | 11 -- .../openstack/artifacts/tomcat.json | 46 ----- .../openstack/artifacts/tomcat1.json | 46 ----- .../openstack/artifacts/tomcat2.json | 46 ----- samples/single-group-v3/openstack/deploy.sh | 15 -- samples/single-group-v3/openstack/undeploy.sh | 4 - 496 files changed, 16307 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app-with-lb/mock/artifacts/application_definition.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/application_definition.json b/samples/complex-app-with-lb/mock/artifacts/application_definition.json deleted file mode 100644 index c1262c2..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/application_definition.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "applicationId": "app_boo", - "alias": "app_boo_r2", - "components": { - "groups": [ - { - "name": "group6", - "alias": "mygroup6", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group7", - "alias": "mygroup7", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group7tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group6tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - }, - { - "name": "group8", - "alias": "mygroup8", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group9", - "alias": "mygroup9", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group9tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group8tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "lb", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "mylb", - "autoscalingPolicy": "autoscale_policy_1" - } - }, - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "mytomcat", - "autoscalingPolicy": "autoscale_policy_1" - } - } - - ], - "dependencies": { - "startupOrders": [ - "cartridge.tomcat2,cartridge.lb,group.group6" - ], - "terminationBehaviour": "terminate-all" - } - } -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app-with-lb/mock/artifacts/autoscale-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/autoscale-policy.json b/samples/complex-app-with-lb/mock/artifacts/autoscale-policy.json deleted file mode 100755 index a921663..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/autoscale-policy.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "autoscale_policy_2", - "loadThresholds": { - "requestsInFlight": { - "threshold": 80 - }, - "memoryConsumption": { - "threshold": 90 - }, - "loadAverage": { - "threshold": 50 - } - } -} http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app-with-lb/mock/artifacts/deployment-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/deployment-policy.json b/samples/complex-app-with-lb/mock/artifacts/deployment-policy.json deleted file mode 100644 index 7ce7fd7..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/deployment-policy.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "applicationId": "app_boo", - "applicationPolicy": { - "networkPartition": [ - { - "id": "openstack_R1", - "activeByDefault": "true", - "partitions": [ - { - "id": "P1", - "provider": "mock", - "property": [ - { - "name": "region", - "value": "RegionOne" - } - ] - } - ] - } - ] - }, - "childPolicies": [ - { - "alias": "mylb", - "networkPartition": [ - { - "id": "openstack_R1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup6", - "networkPartition": [ - { - "id": "openstack_R1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup8", - "networkPartition": [ - { - "id": "openstack_R1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - } - ] -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app-with-lb/mock/artifacts/group6c.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/group6c.json b/samples/complex-app-with-lb/mock/artifacts/group6c.json deleted file mode 100755 index 74fea79..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/group6c.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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/d7f100da/samples/complex-app-with-lb/mock/artifacts/group8c.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/group8c.json b/samples/complex-app-with-lb/mock/artifacts/group8c.json deleted file mode 100755 index fac2096..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/group8c.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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/d7f100da/samples/complex-app-with-lb/mock/artifacts/lb.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/lb.json b/samples/complex-app-with-lb/mock/artifacts/lb.json deleted file mode 100755 index 9dd9b4a..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/lb.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "type": "lb", - "provider": "apache", - "category": "lb", - "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/d7f100da/samples/complex-app-with-lb/mock/artifacts/tomcat1.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/tomcat1.json b/samples/complex-app-with-lb/mock/artifacts/tomcat1.json deleted file mode 100755 index ea2f591..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/tomcat1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "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/d7f100da/samples/complex-app-with-lb/mock/artifacts/tomcat2.json ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/artifacts/tomcat2.json b/samples/complex-app-with-lb/mock/artifacts/tomcat2.json deleted file mode 100755 index c55e5a8..0000000 --- a/samples/complex-app-with-lb/mock/artifacts/tomcat2.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "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/d7f100da/samples/complex-app-with-lb/mock/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/deploy.sh b/samples/complex-app-with-lb/mock/deploy.sh deleted file mode 100755 index 1fba659..0000000 --- a/samples/complex-app-with-lb/mock/deploy.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -# Create autoscale policy -curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies - -# Create tomcat cartridge -curl -X POST -H "Content-Type: application/json" -d @'artifacts/lb.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy tomcat1 cartride -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat1.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy tomcat2 cartride -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat2.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy group -curl -X POST -H "Content-Type: application/json" -d @'artifacts/group6c.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups - -curl -X POST -H "Content-Type: application/json" -d @'artifacts/group8c.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups - -# GET group -#curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups/group6 - - -sleep 5 -# Create application -curl -X POST -H "Content-Type: application/json" -d @'artifacts/application_definition.json' -k -v -u admin:admin https://localhost:9443/api/applications - -sleep 5 -# GET application -# curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/myapp1265 - -# Deploy application - -sleep 3 -curl -X POST -H "Content-Type: application/json" -d@'artifacts/deployment-policy.json' -k -v -u admin:admin https://localhost:9443/api/applications/app_boo/deploy http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app-with-lb/mock/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/complex-app-with-lb/mock/undeploy.sh b/samples/complex-app-with-lb/mock/undeploy.sh deleted file mode 100755 index 78e9792..0000000 --- a/samples/complex-app-with-lb/mock/undeploy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# Undeploy application -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/app_boo/undeploy http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/README.md ---------------------------------------------------------------------- diff --git a/samples/complex-app/README.md b/samples/complex-app/README.md deleted file mode 100644 index 117e787..0000000 --- a/samples/complex-app/README.md +++ /dev/null @@ -1,6 +0,0 @@ -complex-app -=========== - -- Using these artifacts you can deploy the complex application. -- In this deployment scenario, it deployed two groups which are nested. -- Run the deploy.sh to deploy this complex application. http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/ec2/artifacts/application_definition.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/application_definition.json b/samples/complex-app/ec2/artifacts/application_definition.json deleted file mode 100644 index 6a0c701..0000000 --- a/samples/complex-app/ec2/artifacts/application_definition.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "applicationId": "app_boo", - "alias": "app_boo_r2", - "components": { - "groups": [ - { - "name": "group6", - "alias": "mygroup6", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group7", - "alias": "mygroup7", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group7tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group6tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - }, - { - "name": "group8", - "alias": "mygroup8", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group9", - "alias": "mygroup9", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group9tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group8tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "mytomcat", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ], - "dependencies": { - "startupOrders": [ - "group.group8,cartridge.tomcat,group.group6" - ], - "terminationBehaviour": "terminate-all" - } - } -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/ec2/artifacts/autoscale-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/autoscale-policy.json b/samples/complex-app/ec2/artifacts/autoscale-policy.json deleted file mode 100755 index 9e9ad99..0000000 --- a/samples/complex-app/ec2/artifacts/autoscale-policy.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "autoscale_policy_1", - "loadThresholds": { - "requestsInFlight": { - "threshold": 80 - }, - "memoryConsumption": { - "threshold": 90 - }, - "loadAverage": { - "threshold": 50 - } - } -} http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/ec2/artifacts/deployment-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/deployment-policy.json b/samples/complex-app/ec2/artifacts/deployment-policy.json deleted file mode 100644 index 2aac579..0000000 --- a/samples/complex-app/ec2/artifacts/deployment-policy.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "applicationId": "app_boo", - "applicationPolicy": { - "networkPartition": [ - { - "id": "EC2-P1", - "activeByDefault": "true", - "partitions": [ - { - "id": "P1", - "provider": "ec2", - "property": [ - { - "name": "region", - "value": "ap-southeast-1" - } - ] - } - ] - } - ] - }, - "childPolicies": [ - { - "alias": "mytomcat", - "networkPartition": [ - { - "id": "EC2-P1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup6", - "networkPartition": [ - { - "id": "EC2-P1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup8", - "networkPartition": [ - { - "id": "EC2-P1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - } - ] -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/ec2/artifacts/group6c.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/group6c.json b/samples/complex-app/ec2/artifacts/group6c.json deleted file mode 100755 index 74fea79..0000000 --- a/samples/complex-app/ec2/artifacts/group6c.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/ec2/artifacts/group8c.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/group8c.json b/samples/complex-app/ec2/artifacts/group8c.json deleted file mode 100755 index fac2096..0000000 --- a/samples/complex-app/ec2/artifacts/group8c.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/ec2/artifacts/tomcat.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/tomcat.json b/samples/complex-app/ec2/artifacts/tomcat.json deleted file mode 100755 index 5a05386..0000000 --- a/samples/complex-app/ec2/artifacts/tomcat.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/ec2/artifacts/tomcat1.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/tomcat1.json b/samples/complex-app/ec2/artifacts/tomcat1.json deleted file mode 100755 index 1172cd5..0000000 --- a/samples/complex-app/ec2/artifacts/tomcat1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/ec2/artifacts/tomcat2.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/artifacts/tomcat2.json b/samples/complex-app/ec2/artifacts/tomcat2.json deleted file mode 100755 index 014cbbd..0000000 --- a/samples/complex-app/ec2/artifacts/tomcat2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/ec2/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/deploy.sh b/samples/complex-app/ec2/deploy.sh deleted file mode 100755 index e881c5d..0000000 --- a/samples/complex-app/ec2/deploy.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -# Create autoscale policy -curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies - -# Create tomcat cartridge -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy tomcat1 cartride -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat1.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy tomcat2 cartride -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat2.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy group -curl -X POST -H "Content-Type: application/json" -d @'artifacts/group6c.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups - -curl -X POST -H "Content-Type: application/json" -d @'artifacts/group8c.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups - -# GET group -#curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups/group6 - -sleep 5 - -# Create application -curl -X POST -H "Content-Type: application/json" -d @'artifacts/application_definition.json' -k -v -u admin:admin https://localhost:9443/api/applications - -sleep 5 - -# GET application -# curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/myapp1265 - -# Deploy application - -sleep 3 -curl -X POST -H "Content-Type: application/json" -d@'artifacts/deployment-policy.json' -k -v -u admin:admin https://localhost:9443/api/applications/app_boo/deploy http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/ec2/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/complex-app/ec2/undeploy.sh b/samples/complex-app/ec2/undeploy.sh deleted file mode 100755 index 858f19a..0000000 --- a/samples/complex-app/ec2/undeploy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# undeploy application -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/app_boo/undeploy http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/kubernetes/artifacts/application_definition.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/application_definition.json b/samples/complex-app/kubernetes/artifacts/application_definition.json deleted file mode 100644 index 942132d..0000000 --- a/samples/complex-app/kubernetes/artifacts/application_definition.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "applicationId": "app_boo", - "alias": "app_boo_r2", - "components": { - "groups": [ - { - "name": "group6", - "alias": "mygroup6", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group7", - "alias": "mygroup7", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group7tom", - "autoscalingPolicy": "autoscale_policy_1" - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group6tom", - "autoscalingPolicy": "autoscale_policy_1" - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - }, - { - "name": "group8", - "alias": "mygroup8", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group9", - "alias": "mygroup9", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group9tom", - "autoscalingPolicy": "autoscale_policy_1" - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group8tom", - "autoscalingPolicy": "autoscale_policy_1" - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "mytomcat", - "autoscalingPolicy": "autoscale_policy_1" - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ], - "dependencies": { - "startupOrders": [ - "group.group8,cartridge.tomcat,group.group6" - ], - "terminationBehaviour": "terminate-all" - } - } -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/kubernetes/artifacts/autoscale-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/autoscale-policy.json b/samples/complex-app/kubernetes/artifacts/autoscale-policy.json deleted file mode 100755 index 9e9ad99..0000000 --- a/samples/complex-app/kubernetes/artifacts/autoscale-policy.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "autoscale_policy_1", - "loadThresholds": { - "requestsInFlight": { - "threshold": 80 - }, - "memoryConsumption": { - "threshold": 90 - }, - "loadAverage": { - "threshold": 50 - } - } -} http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/kubernetes/artifacts/deployment-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/deployment-policy.json b/samples/complex-app/kubernetes/artifacts/deployment-policy.json deleted file mode 100644 index 82a3b40..0000000 --- a/samples/complex-app/kubernetes/artifacts/deployment-policy.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "applicationId": "app_boo", - "applicationPolicy": { - "networkPartition": [ - { - "id":"network-p1", - "kubernetesClusterId":"kubernetes-cluster-1", - "activeByDefault": "true", - "partitions": [ - { - "id": "P1", - "provider": "mock", - "property": [ - { - "name": "region", - "value": "default" - } - ] - } - ] - } - ] - }, - "childPolicies": [ - { - "alias": "mytomcat", - "networkPartition": [ - { - "id": "network-p1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup6", - "networkPartition": [ - { - "id": "network-p1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup8", - "networkPartition": [ - { - "id": "network-p1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - } - ] -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/kubernetes/artifacts/group6c.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/group6c.json b/samples/complex-app/kubernetes/artifacts/group6c.json deleted file mode 100755 index 74fea79..0000000 --- a/samples/complex-app/kubernetes/artifacts/group6c.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/kubernetes/artifacts/group8c.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/group8c.json b/samples/complex-app/kubernetes/artifacts/group8c.json deleted file mode 100755 index fac2096..0000000 --- a/samples/complex-app/kubernetes/artifacts/group8c.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/kubernetes/artifacts/kubernetes-cluster.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/kubernetes-cluster.json b/samples/complex-app/kubernetes/artifacts/kubernetes-cluster.json deleted file mode 100644 index 228eeb3..0000000 --- a/samples/complex-app/kubernetes/artifacts/kubernetes-cluster.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "clusterId": "kubernetes-cluster-1", - "description": "Kubernetes CoreOS cluster", - "kubernetesMaster": { - "hostId" : "KubHostMaster1", - "hostname" : "master.dev.kubernetes.example.org", - "hostIpAddress" : "172.17.8.100", - "property" : [ - ] - }, - - "portRange" : { - "upper": "5000", - "lower": "4500" - }, - - "kubernetesHosts": [ - { - "hostId" : "KubHostSlave1", - "hostname" : "slave1.dev.kubernetes.example.org", - "hostIpAddress" : "172.17.8.101", - "property" : [ - ] - }, - { - "hostId" : "KubHostSlave2", - "hostname" : "slave2.dev.kubernetes.example.org", - "hostIpAddress" : "172.17.8.102", - "property" : [ - ] - } - ], - "property":[ - { - "name":"payload_parameter.MB_IP", - "value":"172.17.8.1" - }, - { - "name":"payload_parameter.MB_PORT", - "value":"1883" - }, - { - "name":"payload_parameter.CEP_IP", - "value":"172.17.8.1" - }, - { - "name":"payload_parameter.CEP_PORT", - "value":"7711" - }, - { - "name":"payload_parameter.LOG_LEVEL", - "value":"DEBUG" - } - ] -} http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/kubernetes/artifacts/tomcat.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/tomcat.json b/samples/complex-app/kubernetes/artifacts/tomcat.json deleted file mode 100755 index e80eda8..0000000 --- a/samples/complex-app/kubernetes/artifacts/tomcat.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/kubernetes/artifacts/tomcat1.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/tomcat1.json b/samples/complex-app/kubernetes/artifacts/tomcat1.json deleted file mode 100755 index e903d96..0000000 --- a/samples/complex-app/kubernetes/artifacts/tomcat1.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/kubernetes/artifacts/tomcat2.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/artifacts/tomcat2.json b/samples/complex-app/kubernetes/artifacts/tomcat2.json deleted file mode 100755 index a9f3918..0000000 --- a/samples/complex-app/kubernetes/artifacts/tomcat2.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "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/d7f100da/samples/complex-app/kubernetes/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/deploy.sh b/samples/complex-app/kubernetes/deploy.sh deleted file mode 100755 index 0743c7f..0000000 --- a/samples/complex-app/kubernetes/deploy.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -# Create autoscale policy -curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies - -# Create tomcat cartridge -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy tomcat1 cartride -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat1.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy tomcat2 cartride -curl -X POST -H "Content-Type: application/json" -d @'artifacts/tomcat2.json' -k -v -u admin:admin https://localhost:9443/api/cartridges - -# Deploy group -curl -X POST -H "Content-Type: application/json" -d @'artifacts/group6c.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups - -curl -X POST -H "Content-Type: application/json" -d @'artifacts/group8c.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups - -# GET group -#curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups/group6 - - -sleep 5 -# Create application -curl -X POST -H "Content-Type: application/json" -d @'artifacts/application_definition.json' -k -v -u admin:admin https://localhost:9443/api/applications - -sleep 5 -# GET application -# curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/myapp1265 - -# Deploy application - -sleep 3 -curl -X POST -H "Content-Type: application/json" -d@'artifacts/deployment-policy.json' -k -v -u admin:admin https://localhost:9443/api/applications/app_boo/deploy http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/kubernetes/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/complex-app/kubernetes/undeploy.sh b/samples/complex-app/kubernetes/undeploy.sh deleted file mode 100755 index 78e9792..0000000 --- a/samples/complex-app/kubernetes/undeploy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# Undeploy application -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/app_boo/undeploy http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/mock/artifacts/application_definition.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/mock/artifacts/application_definition.json b/samples/complex-app/mock/artifacts/application_definition.json deleted file mode 100644 index 6a0c701..0000000 --- a/samples/complex-app/mock/artifacts/application_definition.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "applicationId": "app_boo", - "alias": "app_boo_r2", - "components": { - "groups": [ - { - "name": "group6", - "alias": "mygroup6", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group7", - "alias": "mygroup7", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group7tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group6tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - }, - { - "name": "group8", - "alias": "mygroup8", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "groups": [ - { - "name": "group9", - "alias": "mygroup9", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group9tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "group8tom", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "mytomcat", - "autoscalingPolicy": "autoscale_policy_1" - } - } - ], - "dependencies": { - "startupOrders": [ - "group.group8,cartridge.tomcat,group.group6" - ], - "terminationBehaviour": "terminate-all" - } - } -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/mock/artifacts/autoscale-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/mock/artifacts/autoscale-policy.json b/samples/complex-app/mock/artifacts/autoscale-policy.json deleted file mode 100755 index a921663..0000000 --- a/samples/complex-app/mock/artifacts/autoscale-policy.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "autoscale_policy_2", - "loadThresholds": { - "requestsInFlight": { - "threshold": 80 - }, - "memoryConsumption": { - "threshold": 90 - }, - "loadAverage": { - "threshold": 50 - } - } -} http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/complex-app/mock/artifacts/deployment-policy.json ---------------------------------------------------------------------- diff --git a/samples/complex-app/mock/artifacts/deployment-policy.json b/samples/complex-app/mock/artifacts/deployment-policy.json deleted file mode 100644 index a2d0e3a..0000000 --- a/samples/complex-app/mock/artifacts/deployment-policy.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "applicationId": "app_boo", - "applicationPolicy": { - "networkPartition": [ - { - "id": "openstack_R1", - "activeByDefault": "true", - "partitions": [ - { - "id": "P1", - "provider": "mock", - "property": [ - { - "name": "region", - "value": "RegionOne" - } - ] - } - ] - } - ] - }, - "childPolicies": [ - { - "alias": "mytomcat", - "networkPartition": [ - { - "id": "openstack_R1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup6", - "networkPartition": [ - { - "id": "openstack_R1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - }, - { - "alias": "mygroup8", - "networkPartition": [ - { - "id": "openstack_R1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "P1", - "max": 5 - } - ] - } - ] - } - ] -} -
