stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <>
Subject Re: 4.1 deployment policy questions
Date Wed, 11 Feb 2015 01:37:44 GMT
Hi Shadeed,

A good question!

On Tue, Feb 10, 2015 at 11:45 PM, Shaheedur Haque (shahhaqu) <> wrote:

>  Hi,
>  This is surely backwards. Why do deployment policies name the
> application? Why can’t a single deployment policy be referenced by multiple
> applications (just like before)?
> In the current release it is not possible to re-use an application
definion with multiple deploymet policies. To be more specific there is no
application template support. This is something we discussed during past
months in the Dev mailing list and decided to include it in a later release
due to the complexity of the application composite model and its deployment

At the moment an application can only be deployed with a given deployment
policy. If we need to deploy the same application with a different
deployment policy we will need to use a different application id.

>  Also, what is confusing is that the samples are themselves inconsistent.
> For example, the first one I looked at [3] seems to be missing *any*
> binding between the application .json and the deployment .json; are these
> samples actually supposed to work, or are they perhaps a work in progress
> only?
We have removed application id from the deployment policy because it is
there in the API URL which is used for deploying the application:

curl -X POST -H "Content-Type: application/json" -d
-k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/

It seems like it has been not reflected in the deployment policy in [2].


Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

View raw message