Re: [Architecture] [C5] Collect config-docs in all featues when packaging product distribution

2017-09-12 Thread Imesh Gunaratne
On Tue, Sep 12, 2017 at 9:10 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Imesh,
>
> ​+1 Wouldn't we need to ship these files?​ Are we planning to add them to
>> the documentation?
>
> AFAIK the idea is to product team check all the relevant configs for a
> product and create a deployment.yaml manually and ship that with the
> product.
>

​Thanks for the clarification Thusitha!​

>
> Doc team is working on a project to document all the relevant configs per
> product based on the generated config files.
>
> Thanks
> Thusitha
>
> On Wed, Sep 13, 2017 at 8:00 AM, Imesh Gunaratne  wrote:
>
>> On Wed, Aug 30, 2017 at 11:07 PM, Danesh Kuruppu  wrote:
>>
>>> ​...​
>>>
>>> ├── distribution
>>>  ├── target
>>>
>>>
>>> * ├── config-docs ├── secure-vault.yaml
>>>└── wso2.carbon.yaml*
>>>  └── wso2carbon-kernel-5.2.0-SNAPSHOT.zip
>>>
>>> So when generating product distribution, we automatically get all
>>> configuration files used in the product. This will also help when creating
>>> product document.
>>>
>>
>> ​+1 Wouldn't we need to ship these files?​ Are we planning to add them to
>> the documentation?
>>
>> Thanks
>> Imesh
>>
>>
>>>
>>> Appreciate your input on this.
>>>
>>> 1. http://wso2-oxygen-tank.10903.n7.nabble.com/Carbon-C5-Server
>>> -Configuration-Model-td144549.html
>>>
>>> Thanks
>>> --
>>>
>>> *Danesh Kuruppu*
>>> Senior Software Engineer | WSO2
>>>
>>> Email: dan...@wso2.com
>>> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
>>> Web: WSO2 Inc 
>>>
>>>
>>> ___
>>> Architecture mailing list
>>> Architecture@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Associate Director/Architect
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057 <+94%2077%20374%202057>
>> W: https://medium.com/@imesh TW: @imesh
>> lean. enterprise. middleware
>>
>>
>> ___
>> Architecture mailing list
>> Architecture@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>
> ___
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Imesh Gunaratne*
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057 <+94%2077%20374%202057>
W: https://medium.com/@imesh TW: @imesh
lean. enterprise. middleware
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


Re: [Architecture] [C5] Collect config-docs in all featues when packaging product distribution

2017-09-12 Thread Thusitha Thilina Dayaratne
Hi Imesh,

​+1 Wouldn't we need to ship these files?​ Are we planning to add them to
> the documentation?

AFAIK the idea is to product team check all the relevant configs for a
product and create a deployment.yaml manually and ship that with the
product.

Doc team is working on a project to document all the relevant configs per
product based on the generated config files.

Thanks
Thusitha

On Wed, Sep 13, 2017 at 8:00 AM, Imesh Gunaratne  wrote:

> On Wed, Aug 30, 2017 at 11:07 PM, Danesh Kuruppu  wrote:
>
>> ​...​
>>
>> ├── distribution
>>  ├── target
>>
>>
>> * ├── config-docs ├── secure-vault.yaml
>>└── wso2.carbon.yaml*
>>  └── wso2carbon-kernel-5.2.0-SNAPSHOT.zip
>>
>> So when generating product distribution, we automatically get all
>> configuration files used in the product. This will also help when creating
>> product document.
>>
>
> ​+1 Wouldn't we need to ship these files?​ Are we planning to add them to
> the documentation?
>
> Thanks
> Imesh
>
>
>>
>> Appreciate your input on this.
>>
>> 1. http://wso2-oxygen-tank.10903.n7.nabble.com/Carbon-C5-Server
>> -Configuration-Model-td144549.html
>>
>> Thanks
>> --
>>
>> *Danesh Kuruppu*
>> Senior Software Engineer | WSO2
>>
>> Email: dan...@wso2.com
>> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
>> Web: WSO2 Inc 
>>
>>
>> ___
>> Architecture mailing list
>> Architecture@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Associate Director/Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057 <+94%2077%20374%202057>
> W: https://medium.com/@imesh TW: @imesh
> lean. enterprise. middleware
>
>
> ___
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


Re: [Architecture] [C5] Collect config-docs in all featues when packaging product distribution

2017-09-12 Thread Imesh Gunaratne
On Wed, Aug 30, 2017 at 11:07 PM, Danesh Kuruppu  wrote:

> ​...​
>
> ├── distribution
>  ├── target
>
>
> * ├── config-docs ├── secure-vault.yaml
>  └── wso2.carbon.yaml*
>  └── wso2carbon-kernel-5.2.0-SNAPSHOT.zip
>
> So when generating product distribution, we automatically get all
> configuration files used in the product. This will also help when creating
> product document.
>

​+1 Wouldn't we need to ship these files?​ Are we planning to add them to
the documentation?

Thanks
Imesh


>
> Appreciate your input on this.
>
> 1. http://wso2-oxygen-tank.10903.n7.nabble.com/Carbon-C5-
> Server-Configuration-Model-td144549.html
>
> Thanks
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc 
>
>
> ___
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Imesh Gunaratne*
Associate Director/Architect
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: https://medium.com/@imesh TW: @imesh
lean. enterprise. middleware
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


Re: [Architecture] [C5] Collect config-docs in all featues when packaging product distribution

2017-09-07 Thread Dilan Udara Ariyaratne
Hi Danesh,

With recent discussions on C5 configuration management, If I understood
correctly, deployment.yaml would not be the only option for a user to
manage configurations, but there will also
be options to directly manipulate configurations via environment variables
and system properties.

Shouldn't we be documenting those options as well ?

For example, if our objective is to change port offset,
[1] If we are going with environment variable approach, Which environment
variable we should use ?
[2] If we are going with system property approach, Which system property we
should use ?
[3] If we are going with deployment.yaml approach, Which key we should use ?

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Aug 31, 2017 at 1:17 PM, Chamila De Alwis  wrote:

> Hi Danesh,
>
> Thanks for bringing this up! This is a huge improvement and IMO we should
> include the reference YAML file in the product distribution for user
> reference purposes. It's true that hosted documentation would take care of
> most of that story, but there can be situations where the user only has a
> terminal and the product zip file, where a reference text file would come
> in handy.
>
> Just a minor query, what is the purpose of the generated secure-vault.yaml
> file?
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Senior Software Engineer | WSO2
> Blog: https://medium.com/@chamilad
>
>
>
> On Thu, Aug 31, 2017 at 11:37 AM, Danesh Kuruppu  wrote:
>
>> Hi all,
>>
>> With new global configuration model discussed in mail thread[1], we are
>> generating configuration files(for documentation purposes) automatically at
>> compile time by reading annotations and default values in config bean
>> classes. And those configuration files are packed in features under
>> config-docs directory like below(e.g).
>>
>> ├── features
>>> └── org.wso2.carbon.kernel_5.2.0.SNAPSHOT
>>> *   ├── config-docs*
>>> *   └── wso2.carbon.yaml*
>>> └── plugins
>>> └── org.wso2.carbon.core-5.2.0.SNAPSHOT.jar
>>>
>>
>>
>> Since those configuration files are only for documentation purposes, We
>> are not shipping them with product distribution. Currently those
>> configuration files are inside feature jar files and in order to read
>> relevant configuration file, we need to extract the jar file.
>>
>> In order solve this issue, we thought of collecting configuration docs in
>> all features when packaging product distribution using maven plugin. Maven
>> plugin will go through all features inside p2-repo
>> directory(distribution/target/p2-repo/features directory) and copy
>> configuration docs in each feature to one location like below
>> (distribution/target/config-docs)
>>
>> ├── distribution
>>  ├── target
>>
>>
>> * ├── config-docs ├── secure-vault.yaml
>>└── wso2.carbon.yaml*
>>  └── wso2carbon-kernel-5.2.0-SNAPSHOT.zip
>>
>> So when generating product distribution, we automatically get all
>> configuration files used in the product. This will also help when creating
>> product document.
>>
>> Appreciate your input on this.
>>
>> 1. http://wso2-oxygen-tank.10903.n7.nabble.com/Carbon-C5-Server
>> -Configuration-Model-td144549.html
>>
>> Thanks
>> --
>>
>> *Danesh Kuruppu*
>> Senior Software Engineer | WSO2
>>
>> Email: dan...@wso2.com
>> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
>> Web: WSO2 Inc 
>>
>>
>> ___
>> Architecture mailing list
>> Architecture@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> ___
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


Re: [Architecture] [C5] Collect config-docs in all featues when packaging product distribution

2017-08-31 Thread Chamila De Alwis
Hi Danesh,

Thanks for bringing this up! This is a huge improvement and IMO we should
include the reference YAML file in the product distribution for user
reference purposes. It's true that hosted documentation would take care of
most of that story, but there can be situations where the user only has a
terminal and the product zip file, where a reference text file would come
in handy.

Just a minor query, what is the purpose of the generated secure-vault.yaml
file?


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Senior Software Engineer | WSO2
Blog: https://medium.com/@chamilad



On Thu, Aug 31, 2017 at 11:37 AM, Danesh Kuruppu  wrote:

> Hi all,
>
> With new global configuration model discussed in mail thread[1], we are
> generating configuration files(for documentation purposes) automatically at
> compile time by reading annotations and default values in config bean
> classes. And those configuration files are packed in features under
> config-docs directory like below(e.g).
>
> ├── features
>> └── org.wso2.carbon.kernel_5.2.0.SNAPSHOT
>> *   ├── config-docs*
>> *   └── wso2.carbon.yaml*
>> └── plugins
>> └── org.wso2.carbon.core-5.2.0.SNAPSHOT.jar
>>
>
>
> Since those configuration files are only for documentation purposes, We
> are not shipping them with product distribution. Currently those
> configuration files are inside feature jar files and in order to read
> relevant configuration file, we need to extract the jar file.
>
> In order solve this issue, we thought of collecting configuration docs in
> all features when packaging product distribution using maven plugin. Maven
> plugin will go through all features inside p2-repo
> directory(distribution/target/p2-repo/features directory) and copy
> configuration docs in each feature to one location like below
> (distribution/target/config-docs)
>
> ├── distribution
>  ├── target
>
>
> * ├── config-docs ├── secure-vault.yaml
>  └── wso2.carbon.yaml*
>  └── wso2carbon-kernel-5.2.0-SNAPSHOT.zip
>
> So when generating product distribution, we automatically get all
> configuration files used in the product. This will also help when creating
> product document.
>
> Appreciate your input on this.
>
> 1. http://wso2-oxygen-tank.10903.n7.nabble.com/Carbon-C5-
> Server-Configuration-Model-td144549.html
>
> Thanks
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc 
>
>
> ___
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


[Architecture] [C5] Collect config-docs in all featues when packaging product distribution

2017-08-30 Thread Danesh Kuruppu
Hi all,

With new global configuration model discussed in mail thread[1], we are
generating configuration files(for documentation purposes) automatically at
compile time by reading annotations and default values in config bean
classes. And those configuration files are packed in features under
config-docs directory like below(e.g).

├── features
> └── org.wso2.carbon.kernel_5.2.0.SNAPSHOT
> *   ├── config-docs*
> *   └── wso2.carbon.yaml*
> └── plugins
> └── org.wso2.carbon.core-5.2.0.SNAPSHOT.jar
>


Since those configuration files are only for documentation purposes, We are
not shipping them with product distribution. Currently those configuration
files are inside feature jar files and in order to read relevant
configuration file, we need to extract the jar file.

In order solve this issue, we thought of collecting configuration docs in
all features when packaging product distribution using maven plugin. Maven
plugin will go through all features inside p2-repo
directory(distribution/target/p2-repo/features directory) and copy
configuration docs in each feature to one location like below
(distribution/target/config-docs)

├── distribution
 ├── target


* ├── config-docs ├── secure-vault.yaml
 └── wso2.carbon.yaml*
 └── wso2carbon-kernel-5.2.0-SNAPSHOT.zip

So when generating product distribution, we automatically get all
configuration files used in the product. This will also help when creating
product document.

Appreciate your input on this.

1.
http://wso2-oxygen-tank.10903.n7.nabble.com/Carbon-C5-Server-Configuration-Model-td144549.html

Thanks
-- 

*Danesh Kuruppu*
Senior Software Engineer | WSO2

Email: dan...@wso2.com
Mobile: +94 (77) 1690552
Web: WSO2 Inc 
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture