Re: [Dev] [puppet] Setting up puppet home from script

2016-09-21 Thread Anuruddha Liyanarachchi
Hi Vishanth, I have fixed the issue. Please take a pull. Regards, Anuruddha On Wed, Sep 21, 2016 at 10:38 PM, Vishanth Balasubramaniam < vishan...@wso2.com> wrote: > Hi, > > That probably be the reason. And yes it should be fixed. > > Regards, > Vishanth > > On Wed, Sep 21, 2016 at 11:06 AM,

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-21 Thread Vishanth Balasubramaniam
Hi, That probably be the reason. And yes it should be fixed. Regards, Vishanth On Wed, Sep 21, 2016 at 11:06 AM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi Vishanth, > > "Declare -A" option is not working in mac os because bash version of mac > os is not supporting declaring

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-20 Thread Anuruddha Liyanarachchi
Hi Vishanth, "Declare -A" option is not working in mac os because bash version of mac os is not supporting declaring associate arrays [1]. Associative array support is available from shell version 4 and upwards, and mac os shell version is 3.2.57. I am currently looking into an alternative

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-20 Thread Vishanth Balasubramaniam
Hi Akila, With those changes, whatever product I specify it is setting up wso2das. For example, when I give *./setup.sh -p esb*, it is setting up wso2das module. Probably the declaration is not properly functioning. Regards, Vishanth On Mon, Sep 19, 2016 at 1:59 PM, Akila Ravihansa Perera

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-19 Thread Akila Ravihansa Perera
Hi, I've improved the Puppet-Home setup script by introducing two map; product_code_to_name_map and product_name_to_module_repo_map. With this approach we can handle cases where product name and product code is different. For eg: API Manager code is "apim" while product name is "wso2am". Also

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-07 Thread Anuruddha Liyanarachchi
Hi Pubudu, +1 for the platform support. I will add the platform support once we finalized the platform hieradata structure. On Thu, Sep 8, 2016 at 3:44 AM, Imesh Gunaratne wrote: > > > On Wed, Sep 7, 2016 at 10:09 PM, Pubudu Gunatilaka > wrote: > >> >> I

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-07 Thread Imesh Gunaratne
On Wed, Sep 7, 2016 at 10:09 PM, Pubudu Gunatilaka wrote: > > I think we need to include the platform as well. If we consider the big > picture, ideally any user should be able to use this script and create a > puppet home for building docker images for Kubernetes, Mesos, or

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-07 Thread Pubudu Gunatilaka
Hi Anuruddha, Great work Anuruddha! I think we need to include the platform as well. If we consider the big picture, ideally any user should be able to use this script and create a puppet home for building docker images for Kubernetes, Mesos, or any other platforms. As we have separate repos for

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-07 Thread Imesh Gunaratne
On Wed, Sep 7, 2016 at 6:24 PM, Anuruddha Liyanarachchi wrote: > Hi Imesh, > > I have now added the ability to configure multiple products using comma > separated product list. > Also included '-p all' option which configures all the products. > > Ex: ./setup.sh -p as > Ex:

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-07 Thread Anuruddha Liyanarachchi
Hi Imesh, I have now added the ability to configure multiple products using comma separated product list. Also included '-p all' option which configures all the products. Ex: ./setup.sh -p as Ex: ./setup.sh -p as,esb,bps Ex: ./setup.sh -p all On Wed, Sep 7, 2016 at 12:46 AM, Imesh Gunaratne

Re: [Dev] [puppet] Setting up puppet home from script

2016-09-06 Thread Imesh Gunaratne
Great work Anuruddha! The bash script works well! Shall we add the ability to install multiple product modules in one go? Maybe we can use a comma separated product list with -p. Thanks On Tue, Sep 6, 2016 at 6:26 PM, Anuruddha Liyanarachchi wrote: > Hi, > > We have

[Dev] [puppet] Setting up puppet home from script

2016-09-06 Thread Anuruddha Liyanarachchi
Hi, We have created separate GitHub repos for Puppet modules so that the Puppet module can be shipped as part of a product release. Since modules are distributed we have introduced a script to generate PUPPET_HOME. The script will work as following. 1. Check puppet_home folder exists. 2.