Re: [RT] Concistent model to describe an installation

2014-09-25 Thread Carsten Ziegeler
I've talked with Bertrand yesterday during the adaptto and we agreed to use the model approach and we also agreed on using YAML. I'll update the current implementation and then we can discuss the details. Carsten 2014-09-23 22:08 GMT+02:00 Carsten Ziegeler cziege...@apache.org: Maybe I try to

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
I've added a first simple parser for the crankstart format, it supports classpath, bundles and configuration for now. Now, the major difference between crankstart and all other models is that crankstart describes actions - most of them (like the above, start level changes, osgi properties) can be

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
2014-09-23 8:27 GMT+02:00 Carsten Ziegeler cziege...@apache.org: I've added a first simple parser for the crankstart format, it supports classpath, bundles and configuration for now. Now, the major difference between crankstart and all other models is that crankstart describes actions - most

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Felix Meschberger
Hi Chetan Am 22.09.2014 um 19:05 schrieb Chetan Mehrotra chetan.mehro...@gmail.com: On Mon, Sep 22, 2014 at 10:28 PM, Carsten Ziegeler cziege...@apache.org wrote: Right, but there is nothing specific we have to do in the model about it. You need a way to inject this stuff on deployment, and

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
2014-09-23 10:34 GMT+02:00 Felix Meschberger fmesc...@adobe.com: Hi Chetan Am 22.09.2014 um 19:05 schrieb Chetan Mehrotra chetan.mehro...@gmail.com : On Mon, Sep 22, 2014 at 10:28 PM, Carsten Ziegeler cziege...@apache.org wrote: Right, but there is nothing specific we have to do in the

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Bertrand Delacretaz
On Sun, Sep 21, 2014 at 9:50 PM, Carsten Ziegeler cziege...@apache.org wrote: I think we need a new approach to describe a deliverable or installation As we see in this thread we still have diverging views on how this should work - I have created

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
Looking at the requirements mentioned at https://cwiki.apache.org/confluence/display/SLING/Sling+NG+Launcher, the first five bullet points are exactly what is covered by the model - except that it is using maven style coordinates instead of urls - but with mvn: urls this would be equivalent. Maven

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
And we have to think about whether we continue to support web application creation? Carsten 2014-09-23 15:31 GMT+02:00 Carsten Ziegeler cziege...@apache.org: Looking at the requirements mentioned at https://cwiki.apache.org/confluence/display/SLING/Sling+NG+Launcher, the first five bullet

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Bertrand Delacretaz
On Tue, Sep 23, 2014 at 8:27 AM, Carsten Ziegeler cziege...@apache.org wrote: I've added a first simple parser for the crankstart format, it supports classpath, bundles and configuration for now. BTW what's wrong with Crankstart itself? It meets most requirements at [1] so we might also base

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Bertrand Delacretaz
On Mon, Sep 22, 2014 at 4:45 PM, Felix Meschberger fmesc...@adobe.com wrote: Am 22.09.2014 um 15:47 schrieb Chetan Mehrotra chetan.mehro...@gmail.com: ... 2. Property Interpolation - Ability to substitute property values via system property, env variables [1] I think in this case we explicitly

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
I think we're already pretty close :) My major conern at the moment is the java model and the merge of two models. If we can agree on that we can built different tools on top of it and they can behave differently but use a consistent model. Carsten 2014-09-23 15:16 GMT+02:00 Bertrand Delacretaz

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
I'm not talking about the launcher, crankstart as a launcher is totally fine. I'm just talking about a model to describe the installation itself. Carsten 2014-09-23 15:38 GMT+02:00 Bertrand Delacretaz bdelacre...@apache.org: On Mon, Sep 22, 2014 at 4:45 PM, Felix Meschberger fmesc...@adobe.com

Re: [RT] Concistent model to describe an installation

2014-09-23 Thread Carsten Ziegeler
Maybe I try to explain the basics of my idea again :) Right now, we have the launchpad which is configured in many different files, it's maven based and produces a runnable jar and a web application. My primary goal is to have the possibility to define a single file containing all the

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Carsten Ziegeler
Hi, 2014-09-22 7:40 GMT+02:00 Bertrand Delacretaz bdelacre...@apache.org: I agree, and the Crankstart launcher [1] is exactly about this. But you're right that agreeing on the *model* that describes the Sling instances is much more important than whatever code interprets this model. Right,

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Carsten Ziegeler
I just renamed subsystem to deliverable. It's better to avoid the term subsystem as this might get confused with OSGi subsystem. This model can be used to define subsystems though of course. And I also renamed run mode to feature - and feature is tied to run modes. This entity is usually called

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Chetan Mehrotra
Hi Carsten, It would be good if following features can be supported in some form 1. Composition - Ability to include other slingstart file via various url schemes file, http etc. Need to define how the included config would be treated if collisions are found 2. Property Interpolation - Ability

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Felix Meschberger
Hi Am 22.09.2014 um 15:47 schrieb Chetan Mehrotra chetan.mehro...@gmail.com: Hi Carsten, It would be good if following features can be supported in some form 1. Composition - Ability to include other slingstart file via various url schemes file, http etc. Need to define how the included

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Chetan Mehrotra
On Mon, Sep 22, 2014 at 8:15 PM, Felix Meschberger fmesc...@adobe.com wrote: I think in this case we explicitly don’t want this: Also, this is not the same as the case for 12factor configuration: This is basically just a packing list to create a quick start. This is a build time task which

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Felix Meschberger
Hi Am 22.09.2014 um 17:09 schrieb Chetan Mehrotra chetan.mehro...@gmail.com: On Mon, Sep 22, 2014 at 8:15 PM, Felix Meschberger fmesc...@adobe.com wrote: I think in this case we explicitly don’t want this: Also, this is not the same as the case for 12factor configuration: This is basically

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Carsten Ziegeler
Hi Chetan, 2014-09-22 15:47 GMT+02:00 Chetan Mehrotra chetan.mehro...@gmail.com: Hi Carsten, It would be good if following features can be supported in some form 1. Composition - Ability to include other slingstart file via various url schemes file, http etc. Need to define how the

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Carsten Ziegeler
2014-09-22 17:13 GMT+02:00 Felix Meschberger fmesc...@adobe.com: Hi Am 22.09.2014 um 17:09 schrieb Chetan Mehrotra chetan.mehro...@gmail.com : On Mon, Sep 22, 2014 at 8:15 PM, Felix Meschberger fmesc...@adobe.com wrote: I think in this case we explicitly don’t want this: Also, this is

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Chetan Mehrotra
On Mon, Sep 22, 2014 at 10:28 PM, Carsten Ziegeler cziege...@apache.org wrote: Right, but there is nothing specific we have to do in the model about it. You need a way to inject this stuff on deployment, and this can be done with merging a deployment model into this model. And I guess there are

Re: [RT] Concistent model to describe an installation

2014-09-22 Thread Alexander Klimetschek
On 21.09.2014, at 22:40, Bertrand Delacretaz bdelacre...@apache.org wrote: I much prefer structured text formats (either plain text or yaml) over XML for such things, as they're more friendly to hack and especially more diff-friendly which is very important in a devops view. I agree, we

Re: [RT] Concistent model to describe an installation

2014-09-21 Thread Bertrand Delacretaz
Hi Carsten, On Sunday, September 21, 2014, Carsten Ziegeler cziege...@apache.org wrote: I think we need a new approach to describe a deliverable or installation... ...It would be great to have all the information in a single place to make it more understandable but also to allow for new ways