[Dev] [Hiera] Deeper hash merge instead of Native hash merge?

2015-12-24 Thread Rajkumar Rajaratnam
Hi Devs,

We are using *Native* hash merge right now. *It merges only the top-level
keys and values in each source hash. If the same key exists in both a lower
priority source and a higher priority source, the higher priority value
will be used. *But it doesn't allow us to override a nested hash.

Lets take an example,

*hiera.yaml*

---
:hierarchy:
- "wso2/%{::product_name}/%{::product_version}/default"
- wso2/common
:backends:
- yaml
:yaml:
:datadir: "hieradata/%{::environment}"

*wso2/common.yaml*

---
# Deployment synchronization configuration
wso2::dep_sync :
enabled : false
auto_checkout : true
auto_commit : false
repository_type : svn
svn :
  url : http://svnrepo.example.com/repos/
   user : username
   password : password
   append_tenant_id: true

*wso2/wso2esb/4.9.0/default.yaml*

---
wso2::dep_sync :
enabled : true
svn :
  url : http://rajkumar.com/repos/


*Native* hash merge would return the following;

{
   "enabled"   =>true,
   "auto_checkout"   =>true,
   "auto_commit"   =>false,
   "repository_type"   =>"svn",
   "svn"   =>   {
  "url"  =>"http://rajkumar.com/repos/;
   }
}

*Deeper* hash merge would return the following;

{
   "enabled"   =>true,
   "auto_checkout"   =>true,
   "auto_commit"   =>false,
   "repository_type"   =>"svn",
   "svn"   =>   {
  "url"  =>"http://rajkumar.com/repos/;,
  "user"  =>"username",
  "password"  =>"password",
  "append_tenant_id"  =>true
   }
}


If we use *Native* hash merging, we need to copy the complete nested hash
("svn" in above example) and override it. If we use *Deeper* hash merging,
we can copy only a part of a nested hash and override it. As you can see,
*Deeper* hash merge reduces data duplication.

Thoughts please.

Thanks,
Raj.

-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Private PaaS 4.1.1 RC2

2015-12-24 Thread Imesh Gunaratne
Hi Gayan,

I think all the distributions should get prefixed with rc2, see 4.1.0-rc2:
https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.0-rc2/

Thanks

On Mon, Dec 21, 2015 at 7:35 PM, Gayan Gunarathne  wrote:

>  Hi All,
>
> This is the second release candidate of WSO2 Private PaaS 4.1.1.
>
> This release fixes the following issues:
> *https://wso2.org/jira/browse/PAAS-305?filter=12582
> *
>
> Please download, test and vote. The vote will be open for 72 hours or as
> needed.
>
> *​Source and binary distribution files:*
> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.1-rc2/
>
> *Maven staging repository:*
>
> http://maven.wso2.org/nexus/content/repositories/orgwso2ppaas-217/
>
> *The tag to be voted upon:*
> https://github.com/wso2/product-private-paas/tree/v4.1.1-rc2
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
>
> Thanks,
> The WSO2 Private PaaS Team
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Private PaaS 4.1.1 RC2

2015-12-24 Thread Gayan Gunarathne
Hi Imesh,

What is the ration behind that? I don't see any reason to prefix binaries
with the release candidate no. As those binaries will be the one which move
to the product release distribution if the vote is success,

Thanks,
Gayan

On Thu, Dec 24, 2015 at 10:14 PM, Imesh Gunaratne  wrote:

> Hi Gayan,
>
> I think all the distributions should get prefixed with rc2, see 4.1.0-rc2:
> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.0-rc2/
>
> Thanks
>
> On Mon, Dec 21, 2015 at 7:35 PM, Gayan Gunarathne  wrote:
>
>>  Hi All,
>>
>> This is the second release candidate of WSO2 Private PaaS 4.1.1.
>>
>> This release fixes the following issues:
>> *https://wso2.org/jira/browse/PAAS-305?filter=12582
>> *
>>
>> Please download, test and vote. The vote will be open for 72 hours or as
>> needed.
>>
>> *​Source and binary distribution files:*
>> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.1-rc2/
>>
>> *Maven staging repository:*
>>
>> http://maven.wso2.org/nexus/content/repositories/orgwso2ppaas-217/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/product-private-paas/tree/v4.1.1-rc2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> Thanks,
>> The WSO2 Private PaaS Team
>>
>> --
>>
>> Gayan Gunarathne
>> Technical Lead, WSO2 Inc. (http://wso2.com)
>> Committer & PMC Member, Apache Stratos
>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Private PaaS 4.1.1 RC2

2015-12-24 Thread Imesh Gunaratne
On Thu, Dec 24, 2015 at 10:41 PM, Gayan Gunarathne  wrote:

> Hi Imesh,
>
> What is the ration behind that? I don't see any reason to prefix binaries
> with the release candidate no. As those binaries will be the one which move
> to the product release distribution if the vote is success,
>
> The only concern is once we do multiple release candidates, how would
someone differentiate those if we have the same set of file names?

Thanks

Thanks,
> Gayan
>
> On Thu, Dec 24, 2015 at 10:14 PM, Imesh Gunaratne  wrote:
>
>> Hi Gayan,
>>
>> I think all the distributions should get prefixed with rc2, see 4.1.0-rc2:
>> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.0-rc2/
>>
>> Thanks
>>
>> On Mon, Dec 21, 2015 at 7:35 PM, Gayan Gunarathne 
>> wrote:
>>
>>>  Hi All,
>>>
>>> This is the second release candidate of WSO2 Private PaaS 4.1.1.
>>>
>>> This release fixes the following issues:
>>> *https://wso2.org/jira/browse/PAAS-305?filter=12582
>>> *
>>>
>>> Please download, test and vote. The vote will be open for 72 hours or
>>> as needed.
>>>
>>> *​Source and binary distribution files:*
>>> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.1-rc2/
>>>
>>> *Maven staging repository:*
>>>
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2ppaas-217/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/product-private-paas/tree/v4.1.1-rc2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>>
>>> Thanks,
>>> The WSO2 Private PaaS Team
>>>
>>> --
>>>
>>> Gayan Gunarathne
>>> Technical Lead, WSO2 Inc. (http://wso2.com)
>>> Committer & PMC Member, Apache Stratos
>>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Private PaaS 4.1.1 RC2

2015-12-24 Thread Gayan Gunarathne
s/ration/rational/

On Thu, Dec 24, 2015 at 10:41 PM, Gayan Gunarathne  wrote:

> Hi Imesh,
>
> What is the ration behind that? I don't see any reason to prefix binaries
> with the release candidate no. As those binaries will be the one which move
> to the product release distribution if the vote is success,
>
> Thanks,
> Gayan
>
> On Thu, Dec 24, 2015 at 10:14 PM, Imesh Gunaratne  wrote:
>
>> Hi Gayan,
>>
>> I think all the distributions should get prefixed with rc2, see 4.1.0-rc2:
>> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.0-rc2/
>>
>> Thanks
>>
>> On Mon, Dec 21, 2015 at 7:35 PM, Gayan Gunarathne 
>> wrote:
>>
>>>  Hi All,
>>>
>>> This is the second release candidate of WSO2 Private PaaS 4.1.1.
>>>
>>> This release fixes the following issues:
>>> *https://wso2.org/jira/browse/PAAS-305?filter=12582
>>> *
>>>
>>> Please download, test and vote. The vote will be open for 72 hours or
>>> as needed.
>>>
>>> *​Source and binary distribution files:*
>>> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.1-rc2/
>>>
>>> *Maven staging repository:*
>>>
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2ppaas-217/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/product-private-paas/tree/v4.1.1-rc2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>>
>>> Thanks,
>>> The WSO2 Private PaaS Team
>>>
>>> --
>>>
>>> Gayan Gunarathne
>>> Technical Lead, WSO2 Inc. (http://wso2.com)
>>> Committer & PMC Member, Apache Stratos
>>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Private PaaS 4.1.1 RC2

2015-12-24 Thread Gayan Gunarathne
IMO if the vote is success we can simply move those binaries to the product
distribution without doing any alternation to those binaries.This is the
same as the staging repo. If the vote is success we promote the staging
repo , if it is fails we drop that staging repo.

Thanks,
Gayan

On Thu, Dec 24, 2015 at 11:47 PM, Imesh Gunaratne  wrote:

>
>
> On Thu, Dec 24, 2015 at 10:41 PM, Gayan Gunarathne 
> wrote:
>
>> Hi Imesh,
>>
>> What is the ration behind that? I don't see any reason to prefix binaries
>> with the release candidate no. As those binaries will be the one which move
>> to the product release distribution if the vote is success,
>>
>> The only concern is once we do multiple release candidates, how would
> someone differentiate those if we have the same set of file names?
>
> Thanks
>
> Thanks,
>> Gayan
>>
>> On Thu, Dec 24, 2015 at 10:14 PM, Imesh Gunaratne  wrote:
>>
>>> Hi Gayan,
>>>
>>> I think all the distributions should get prefixed with rc2, see
>>> 4.1.0-rc2:
>>> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.0-rc2/
>>>
>>> Thanks
>>>
>>> On Mon, Dec 21, 2015 at 7:35 PM, Gayan Gunarathne 
>>> wrote:
>>>
  Hi All,

 This is the second release candidate of WSO2 Private PaaS 4.1.1.

 This release fixes the following issues:
 *https://wso2.org/jira/browse/PAAS-305?filter=12582
 *

 Please download, test and vote. The vote will be open for 72 hours or
 as needed.

 *​Source and binary distribution files:*
 https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.1-rc2/

 *Maven staging repository:*

 http://maven.wso2.org/nexus/content/repositories/orgwso2ppaas-217/

 *The tag to be voted upon:*
 https://github.com/wso2/product-private-paas/tree/v4.1.1-rc2


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release


 Thanks,
 The WSO2 Private PaaS Team

 --

 Gayan Gunarathne
 Technical Lead, WSO2 Inc. (http://wso2.com)
 Committer & PMC Member, Apache Stratos
 email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>>
>> Gayan Gunarathne
>> Technical Lead, WSO2 Inc. (http://wso2.com)
>> Committer & PMC Member, Apache Stratos
>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>
>>
>>
>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] App Manager-1.1.0 Released !

2015-12-24 Thread Jenananthan Yogendran
WSO2 App Manager-1.1.0 Released  !

WSO2 App Manager team is pleased to announce the *1.1.0* release of WSO2
App Manager.

WSO2 Application Manager (AppM) is a powerful platform for creating,
managing, consuming and monitoring web Applications.It combines tried and
tested SOA best practices with modern day Application provisioning,
management principles, governing and security to solve a wide range of
enterprise challenges associated with managing many number of applications
(Mobile and Web)

You can download this distribution from
http://wso2.com/products/app-manager/.

The online documentation is available at
https://docs.wso2.com/display/APPM110/WSO2+App+Manager+Documentation.


How to Run

   1. Extract the downloaded zip
   2. Go to the bin directory in the extracted folder
   3. Run the wso2server.sh or wso2server.bat as appropriate
   4. Launch a web browser and navigate to https://localhost:9443/publisher to
   access the App Publisher
   5. Navigate to https://localhost:9443/store to access the App Store
   6. Navigate to https://localhost:9443/admin-dashboard to access Admin
   dashboard
   7. Use "admin", "admin" as the username and password to login as an admin

New Features in WSO2 App Manager 1.1.0

   - Multi-tenanted tenant stores
   - Publish apps to external stores
   - Share apps between tenants
   - Self signup for tenant stores

Resolved Issues

   - WSO2 App Manager V1.1.0 resolved issues
   

Key Features in WSO2 App Manager 1.1.0Web Apps

   - Single sign on between web apps
   - Visibility control for Web apps
   - Resource level throttling for web-apps
   - URL pattern based authorization
   - XACML Policy support
   - Application Discovery Support
   - Annonymous mode web app accessing capability
   - Capability to associate comprehensive documentation to a web app
   - Enterprise subscription support in store
   - Workflow extensions support
   - Integrating with Google Analytics
   - Publishing App Manager Runtime Statistics
   - Capability to obtaining an OAuth2 token by providing SAML token
   - Wep-apps rating support for store users
   - Capability to associate tags to web-apps
   - Returning SAML response to backend
   - Capability to sort apps in store by usage
   - Multi-tenancy support

Mobile Apps

   - Supports publishing iOS, Android, Hybrid and Web apps
   - Supports publishing Enterprise and public apps in Goolge Play Store
   and Apple iTunes
   - App versioning and lifecycle management
   - Directly downloading mobile apps to relevent devices
   - Self-subscription and Self-unsubscription of apps
   - Enterprise subscription and installation support in store
   - Configurable with WSO2 device management solutions
   - Mobile-apps rating support for store users
   - Support for 3rd party device management solutions
   - Multi-tenancy support

Known Issues

All the open issues pertaining to WSO2 App Manager are reported at the
following location:

   - Known Issues 

How You Can ContributeMailing Lists
Join our mailing list and correspond with the developers directly.

   -  Developer List : dev@wso2.org | Subscribe
    | Mail Archive
   
   -  User List : u...@wso2.org | Subscribe
    | Mail Archive
   

*Reporting Issues*

 We encourage you to report issues, documentation faults and feature
requests regarding WSO2 App Manager through the public App Manager JIRA
. You can use the Carbon JIRA
 to report any issues related
to the Carbon base framework or associated Carbon components.
Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity please
visit http://wso2.com/support.

*-- The WSO2 App Manager Team --*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev