Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Better not to use python-dev, see below post: http://stackoverflow.com/questions/21341423/should-python-dev-be-required-to-install-pip On Mon, Sep 7, 2015 at 11:27 AM, Akila Ravihansa Pererawrote: > All package installations should have a check whether package is already > installed. IMO, enforcing a module order to overcome this is not the proper > way to solve it. > > ___ > 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] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Hi, On Mon, Sep 7, 2015 at 10:38 AM, Reka Thirunavukkarasuwrote: > Hi > > When we include python in PCA and configurator, won't it get installed by > both the modules where i might give errors as it is already installed by > the other module. Otherwise, we will need to add a check for whether the > relevant library exists already or not. > Yeah. We need to check whether those are already exist or not. > > In order to overcome this, what if we define a module for python with all > the relevant libraries and then include it as we need when defining node > classes for relevant module. Eg: > > Class['stratos_base'] -> Class['java'] -> Class['*python*'] -> > Class['configurator']-> Class['python_agent'] -> Class['wso2am'] > +1. I think this is the way for long run. > > WDYT? > > Thanks, > Reka > > > On Sun, Sep 6, 2015 at 11:50 PM, Imesh Gunaratne wrote: > >> On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < >> anurudd...@wso2.com> wrote: >> >>> Hi, >>> >>> IMO we can define 'python-dev', 'python-pip' libraries in stratos base >>> since they are required by configurator which is a mandatory module. >>> >> >> Why do we use "python-dev" instead of "python"? >> >> It would be better to include them in the Configurator and PCA modules >> specifically. I do not see any reason to include them in the base module. >> >> On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < >> anurudd...@wso2.com> wrote: >> >>> Hi, >>> >>> IMO we can define 'python-dev', 'python-pip' libraries in stratos base >>> since they are required by configurator which is a mandatory module. >>> Therefore, >>> In configurator module we can inlcude jinja2; >>> In PCA module we can include PCA related python dependencies >>> *(**paho,psutil,gittle,pexpect,yapsy >>> etc.);* >>> >>> WDYT ? >>> >>> >>> On Sun, Sep 6, 2015 at 11:02 AM, Gayan Gunarathne >>> wrote: >>> It is ok to redefined the python-pip module in configurator module since currently it is used in PCA and configurator only. But this might be a issue with other python libraries as well if that commonly used among the python modules.Also if there is several python modules exists we need to redefined the libraries everywhere.IMO we may need to include separate module for python and that module we can include the common libraries for python. Thanks, Gayan On Sun, Sep 6, 2015 at 9:25 AM, Akila Ravihansa Perera < raviha...@wso2.com> wrote: > Hi Raj, > > Yes, I meant python-pip should not be removed from PCA module but > should be installed for configurator as well. > > I think it should be redefined for configurator module since > python-pip is not a compulsory package. We can use Java agent without it. > > Thanks. > > On Sun, Sep 6, 2015 at 6:17 AM, Rajkumar Rajaratnam < > rajkum...@wso2.com> wrote: > >> >> >> On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Perera < >> raviha...@wso2.com> wrote: >> >>> Hi Raj, >>> >>> I think we should not remove python-pip from PCA module since those >>> dependencies should be installed for PCA to function. >>> >> >> In the very similar way, python-pip should be installed for >> configurator to function as well :). So if I am using java agent instead >> of >> python agent, how would configurator work without python-pip? IMO, we can >> either move python-pip to stratos_base or use [1] to redfine python-pip >> package in configurator if it is not already defined anywhere else. >> >> [1] >> http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined >> >> Thanks, >> Raj. >> >>> >>> @Anuruddha: I still see that jinja2 is packed from PCA module [1]. >>> Shall we move this to configurator module? >>> >>> [1] >>> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 >>> >>> Thanks. >>> >>> On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchi < >>> anurudd...@wso2.com> wrote: >>> Hi Raj, Thanks for pointing this out. I have now added the jinja2 dependency to configurator module and removed from PCA. [1] [1] https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam < rajkum...@wso2.com> wrote: > Hi, > > I think python-pip & jinja2 should be installed by configurator > puppet module, not by python agent. > > I am using vagrant, puppet and configurator to setup my > development environment, but I am not using python agent. Since > $subject is > not
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Hi When we include python in PCA and configurator, won't it get installed by > both the modules where i might give errors as it is already installed by > the other module. Otherwise, we will need to add a check for whether the > relevant library exists already or not. > In order to overcome this, what if we define a module for python with all > the relevant libraries and then include it as we need when defining node > classes for relevant module. Eg: > Class['stratos_base'] -> Class['java'] -> Class['*python*'] -> > Class['configurator']-> Class['python_agent'] -> Class['wso2am'] +1. From this way we can reuse the python module in other cartridges as well. On Mon, Sep 7, 2015 at 11:04 AM, Gayan Gunarathnewrote: > Hi, > > On Mon, Sep 7, 2015 at 10:38 AM, Reka Thirunavukkarasu > wrote: > >> Hi >> >> When we include python in PCA and configurator, won't it get installed >> by both the modules where i might give errors as it is already installed by >> the other module. Otherwise, we will need to add a check for whether the >> relevant library exists already or not. >> > Yeah. We need to check whether those are already exist or not. > >> >> In order to overcome this, what if we define a module for python with all >> the relevant libraries and then include it as we need when defining node >> classes for relevant module. Eg: >> >> Class['stratos_base'] -> Class['java'] -> Class['*python*'] -> >> Class['configurator']-> Class['python_agent'] -> Class['wso2am'] >> > > +1. I think this is the way for long run. > >> >> WDYT? >> >> Thanks, >> Reka >> >> >> On Sun, Sep 6, 2015 at 11:50 PM, Imesh Gunaratne wrote: >> >>> On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < >>> anurudd...@wso2.com> wrote: >>> Hi, IMO we can define 'python-dev', 'python-pip' libraries in stratos base since they are required by configurator which is a mandatory module. >>> >>> Why do we use "python-dev" instead of "python"? >>> >>> It would be better to include them in the Configurator and PCA modules >>> specifically. I do not see any reason to include them in the base module. >>> >>> On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < >>> anurudd...@wso2.com> wrote: >>> Hi, IMO we can define 'python-dev', 'python-pip' libraries in stratos base since they are required by configurator which is a mandatory module. Therefore, In configurator module we can inlcude jinja2; In PCA module we can include PCA related python dependencies *(**paho,psutil,gittle,pexpect,yapsy etc.);* WDYT ? On Sun, Sep 6, 2015 at 11:02 AM, Gayan Gunarathne wrote: > It is ok to redefined the python-pip module in configurator module > since currently it is used in PCA and configurator only. > > But this might be a issue with other python libraries as well if that > commonly used among the python modules.Also if there is several python > modules exists we need to redefined the libraries everywhere.IMO we may > need to include separate module for python and that module we can include > the common libraries for python. > > Thanks, > Gayan > > On Sun, Sep 6, 2015 at 9:25 AM, Akila Ravihansa Perera < > raviha...@wso2.com> wrote: > >> Hi Raj, >> >> Yes, I meant python-pip should not be removed from PCA module but >> should be installed for configurator as well. >> >> I think it should be redefined for configurator module since >> python-pip is not a compulsory package. We can use Java agent without it. >> >> Thanks. >> >> On Sun, Sep 6, 2015 at 6:17 AM, Rajkumar Rajaratnam < >> rajkum...@wso2.com> wrote: >> >>> >>> >>> On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Perera < >>> raviha...@wso2.com> wrote: >>> Hi Raj, I think we should not remove python-pip from PCA module since those dependencies should be installed for PCA to function. >>> >>> In the very similar way, python-pip should be installed for >>> configurator to function as well :). So if I am using java agent >>> instead of >>> python agent, how would configurator work without python-pip? IMO, we >>> can >>> either move python-pip to stratos_base or use [1] to redfine python-pip >>> package in configurator if it is not already defined anywhere else. >>> >>> [1] >>> http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined >>> >>> Thanks, >>> Raj. >>> @Anuruddha: I still see that jinja2 is packed from PCA module [1]. Shall we move this to configurator module? [1] https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
All package installations should have a check whether package is already installed. IMO, enforcing a module order to overcome this is not the proper way to solve it. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Hi When we include python in PCA and configurator, won't it get installed by both the modules where i might give errors as it is already installed by the other module. Otherwise, we will need to add a check for whether the relevant library exists already or not. In order to overcome this, what if we define a module for python with all the relevant libraries and then include it as we need when defining node classes for relevant module. Eg: Class['stratos_base'] -> Class['java'] -> Class['*python*'] -> Class['configurator']-> Class['python_agent'] -> Class['wso2am'] WDYT? Thanks, Reka On Sun, Sep 6, 2015 at 11:50 PM, Imesh Gunaratnewrote: > On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < > anurudd...@wso2.com> wrote: > >> Hi, >> >> IMO we can define 'python-dev', 'python-pip' libraries in stratos base >> since they are required by configurator which is a mandatory module. >> > > Why do we use "python-dev" instead of "python"? > > It would be better to include them in the Configurator and PCA modules > specifically. I do not see any reason to include them in the base module. > > On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < > anurudd...@wso2.com> wrote: > >> Hi, >> >> IMO we can define 'python-dev', 'python-pip' libraries in stratos base >> since they are required by configurator which is a mandatory module. >> Therefore, >> In configurator module we can inlcude jinja2; >> In PCA module we can include PCA related python dependencies >> *(**paho,psutil,gittle,pexpect,yapsy >> etc.);* >> >> WDYT ? >> >> >> On Sun, Sep 6, 2015 at 11:02 AM, Gayan Gunarathne >> wrote: >> >>> It is ok to redefined the python-pip module in configurator module since >>> currently it is used in PCA and configurator only. >>> >>> But this might be a issue with other python libraries as well if that >>> commonly used among the python modules.Also if there is several python >>> modules exists we need to redefined the libraries everywhere.IMO we may >>> need to include separate module for python and that module we can include >>> the common libraries for python. >>> >>> Thanks, >>> Gayan >>> >>> On Sun, Sep 6, 2015 at 9:25 AM, Akila Ravihansa Perera < >>> raviha...@wso2.com> wrote: >>> Hi Raj, Yes, I meant python-pip should not be removed from PCA module but should be installed for configurator as well. I think it should be redefined for configurator module since python-pip is not a compulsory package. We can use Java agent without it. Thanks. On Sun, Sep 6, 2015 at 6:17 AM, Rajkumar Rajaratnam wrote: > > > On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Perera < > raviha...@wso2.com> wrote: > >> Hi Raj, >> >> I think we should not remove python-pip from PCA module since those >> dependencies should be installed for PCA to function. >> > > In the very similar way, python-pip should be installed for > configurator to function as well :). So if I am using java agent instead > of > python agent, how would configurator work without python-pip? IMO, we can > either move python-pip to stratos_base or use [1] to redfine python-pip > package in configurator if it is not already defined anywhere else. > > [1] > http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined > > Thanks, > Raj. > >> >> @Anuruddha: I still see that jinja2 is packed from PCA module [1]. >> Shall we move this to configurator module? >> >> [1] >> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 >> >> Thanks. >> >> On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchi < >> anurudd...@wso2.com> wrote: >> >>> Hi Raj, >>> >>> Thanks for pointing this out. I have now added the jinja2 dependency >>> to configurator module and removed from PCA. [1] >>> >>> [1] >>> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 >>> >>> On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam < >>> rajkum...@wso2.com> wrote: >>> Hi, I think python-pip & jinja2 should be installed by configurator puppet module, not by python agent. I am using vagrant, puppet and configurator to setup my development environment, but I am not using python agent. Since $subject is not done, I had to modify configurator puppet module. It would be better if we do the $subject. Thanks, Raj. -- Rajkumar Rajaratnam Committer & PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog :
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi, > > IMO we can define 'python-dev', 'python-pip' libraries in stratos base > since they are required by configurator which is a mandatory module. > Why do we use "python-dev" instead of "python"? It would be better to include them in the Configurator and PCA modules specifically. I do not see any reason to include them in the base module. On Sun, Sep 6, 2015 at 11:27 AM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi, > > IMO we can define 'python-dev', 'python-pip' libraries in stratos base > since they are required by configurator which is a mandatory module. > Therefore, > In configurator module we can inlcude jinja2; > In PCA module we can include PCA related python dependencies > *(**paho,psutil,gittle,pexpect,yapsy > etc.);* > > WDYT ? > > > On Sun, Sep 6, 2015 at 11:02 AM, Gayan Gunarathnewrote: > >> It is ok to redefined the python-pip module in configurator module since >> currently it is used in PCA and configurator only. >> >> But this might be a issue with other python libraries as well if that >> commonly used among the python modules.Also if there is several python >> modules exists we need to redefined the libraries everywhere.IMO we may >> need to include separate module for python and that module we can include >> the common libraries for python. >> >> Thanks, >> Gayan >> >> On Sun, Sep 6, 2015 at 9:25 AM, Akila Ravihansa Perera < >> raviha...@wso2.com> wrote: >> >>> Hi Raj, >>> >>> Yes, I meant python-pip should not be removed from PCA module but should >>> be installed for configurator as well. >>> >>> I think it should be redefined for configurator module since python-pip >>> is not a compulsory package. We can use Java agent without it. >>> >>> Thanks. >>> >>> On Sun, Sep 6, 2015 at 6:17 AM, Rajkumar Rajaratnam >>> wrote: >>> On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Perera < raviha...@wso2.com> wrote: > Hi Raj, > > I think we should not remove python-pip from PCA module since those > dependencies should be installed for PCA to function. > In the very similar way, python-pip should be installed for configurator to function as well :). So if I am using java agent instead of python agent, how would configurator work without python-pip? IMO, we can either move python-pip to stratos_base or use [1] to redfine python-pip package in configurator if it is not already defined anywhere else. [1] http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined Thanks, Raj. > > @Anuruddha: I still see that jinja2 is packed from PCA module [1]. > Shall we move this to configurator module? > > [1] > https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 > > Thanks. > > On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchi < > anurudd...@wso2.com> wrote: > >> Hi Raj, >> >> Thanks for pointing this out. I have now added the jinja2 dependency >> to configurator module and removed from PCA. [1] >> >> [1] >> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 >> >> On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam < >> rajkum...@wso2.com> wrote: >> >>> Hi, >>> >>> I think python-pip & jinja2 should be installed by configurator >>> puppet module, not by python agent. >>> >>> I am using vagrant, puppet and configurator to setup my development >>> environment, but I am not using python agent. Since $subject is not >>> done, I >>> had to modify configurator puppet module. >>> >>> It would be better if we do the $subject. >>> >>> 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 >>> >>> >> >> >> -- >> *Thanks and Regards,* >> Anuruddha Lanka Liyanarachchi >> Software Engineer - WSO2 >> Mobile : +94 (0) 712762611 >> Tel : +94 112 145 345 >> a nurudd...@wso2.com >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Akila Ravihansa Perera > WSO2 Inc.; http://wso2.com/ > > Blog: http://ravihansa3000.blogspot.com > -- Rajkumar Rajaratnam Committer & PMC Member, Apache
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Hi Raj, Thanks for pointing this out. I have now added the jinja2 dependency to configurator module and removed from PCA. [1] [1] https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnamwrote: > Hi, > > I think python-pip & jinja2 should be installed by configurator puppet > module, not by python agent. > > I am using vagrant, puppet and configurator to setup my development > environment, but I am not using python agent. Since $subject is not done, I > had to modify configurator puppet module. > > It would be better if we do the $subject. > > 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 > > -- *Thanks and Regards,* Anuruddha Lanka Liyanarachchi Software Engineer - WSO2 Mobile : +94 (0) 712762611 Tel : +94 112 145 345 a nurudd...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Hi Raj, I think we should not remove python-pip from PCA module since those dependencies should be installed for PCA to function. @Anuruddha: I still see that jinja2 is packed from PCA module [1]. Shall we move this to configurator module? [1] https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 Thanks. On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchiwrote: > Hi Raj, > > Thanks for pointing this out. I have now added the jinja2 dependency to > configurator module and removed from PCA. [1] > > [1] > https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 > > On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam > wrote: > >> Hi, >> >> I think python-pip & jinja2 should be installed by configurator puppet >> module, not by python agent. >> >> I am using vagrant, puppet and configurator to setup my development >> environment, but I am not using python agent. Since $subject is not done, I >> had to modify configurator puppet module. >> >> It would be better if we do the $subject. >> >> 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 >> >> > > > -- > *Thanks and Regards,* > Anuruddha Lanka Liyanarachchi > Software Engineer - WSO2 > Mobile : +94 (0) 712762611 > Tel : +94 112 145 345 > a nurudd...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Akila Ravihansa Perera WSO2 Inc.; http://wso2.com/ Blog: http://ravihansa3000.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Hi Raj, Yes, I meant python-pip should not be removed from PCA module but should be installed for configurator as well. I think it should be redefined for configurator module since python-pip is not a compulsory package. We can use Java agent without it. Thanks. On Sun, Sep 6, 2015 at 6:17 AM, Rajkumar Rajaratnamwrote: > > > On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Perera > wrote: > >> Hi Raj, >> >> I think we should not remove python-pip from PCA module since those >> dependencies should be installed for PCA to function. >> > > In the very similar way, python-pip should be installed for configurator > to function as well :). So if I am using java agent instead of python > agent, how would configurator work without python-pip? IMO, we can either > move python-pip to stratos_base or use [1] to redfine python-pip package in > configurator if it is not already defined anywhere else. > > [1] > http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined > > Thanks, > Raj. > >> >> @Anuruddha: I still see that jinja2 is packed from PCA module [1]. Shall >> we move this to configurator module? >> >> [1] >> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 >> >> Thanks. >> >> On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchi < >> anurudd...@wso2.com> wrote: >> >>> Hi Raj, >>> >>> Thanks for pointing this out. I have now added the jinja2 dependency to >>> configurator module and removed from PCA. [1] >>> >>> [1] >>> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 >>> >>> On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam >>> wrote: >>> Hi, I think python-pip & jinja2 should be installed by configurator puppet module, not by python agent. I am using vagrant, puppet and configurator to setup my development environment, but I am not using python agent. Since $subject is not done, I had to modify configurator puppet module. It would be better if we do the $subject. 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 >>> >>> >>> -- >>> *Thanks and Regards,* >>> Anuruddha Lanka Liyanarachchi >>> Software Engineer - WSO2 >>> Mobile : +94 (0) 712762611 >>> Tel : +94 112 145 345 >>> a nurudd...@wso2.com >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Akila Ravihansa Perera >> WSO2 Inc.; http://wso2.com/ >> >> Blog: http://ravihansa3000.blogspot.com >> > > > > -- > Rajkumar Rajaratnam > Committer & PMC Member, Apache Stratos > Software Engineer, WSO2 > > Mobile : +94777568639 > Blog : rajkumarr.com > -- Akila Ravihansa Perera WSO2 Inc.; http://wso2.com/ Blog: http://ravihansa3000.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Pererawrote: > Hi Raj, > > I think we should not remove python-pip from PCA module since those > dependencies should be installed for PCA to function. > In the very similar way, python-pip should be installed for configurator to function as well :). So if I am using java agent instead of python agent, how would configurator work without python-pip? IMO, we can either move python-pip to stratos_base or use [1] to redfine python-pip package in configurator if it is not already defined anywhere else. [1] http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined Thanks, Raj. > > @Anuruddha: I still see that jinja2 is packed from PCA module [1]. Shall > we move this to configurator module? > > [1] > https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 > > Thanks. > > On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchi < > anurudd...@wso2.com> wrote: > >> Hi Raj, >> >> Thanks for pointing this out. I have now added the jinja2 dependency to >> configurator module and removed from PCA. [1] >> >> [1] >> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 >> >> On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam >> wrote: >> >>> Hi, >>> >>> I think python-pip & jinja2 should be installed by configurator puppet >>> module, not by python agent. >>> >>> I am using vagrant, puppet and configurator to setup my development >>> environment, but I am not using python agent. Since $subject is not done, I >>> had to modify configurator puppet module. >>> >>> It would be better if we do the $subject. >>> >>> 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 >>> >>> >> >> >> -- >> *Thanks and Regards,* >> Anuruddha Lanka Liyanarachchi >> Software Engineer - WSO2 >> Mobile : +94 (0) 712762611 >> Tel : +94 112 145 345 >> a nurudd...@wso2.com >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Akila Ravihansa Perera > WSO2 Inc.; http://wso2.com/ > > Blog: http://ravihansa3000.blogspot.com > -- 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] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
It is ok to redefined the python-pip module in configurator module since currently it is used in PCA and configurator only. But this might be a issue with other python libraries as well if that commonly used among the python modules.Also if there is several python modules exists we need to redefined the libraries everywhere.IMO we may need to include separate module for python and that module we can include the common libraries for python. Thanks, Gayan On Sun, Sep 6, 2015 at 9:25 AM, Akila Ravihansa Pererawrote: > Hi Raj, > > Yes, I meant python-pip should not be removed from PCA module but should > be installed for configurator as well. > > I think it should be redefined for configurator module since python-pip is > not a compulsory package. We can use Java agent without it. > > Thanks. > > On Sun, Sep 6, 2015 at 6:17 AM, Rajkumar Rajaratnam > wrote: > >> >> >> On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Perera < >> raviha...@wso2.com> wrote: >> >>> Hi Raj, >>> >>> I think we should not remove python-pip from PCA module since those >>> dependencies should be installed for PCA to function. >>> >> >> In the very similar way, python-pip should be installed for configurator >> to function as well :). So if I am using java agent instead of python >> agent, how would configurator work without python-pip? IMO, we can either >> move python-pip to stratos_base or use [1] to redfine python-pip package in >> configurator if it is not already defined anywhere else. >> >> [1] >> http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined >> >> Thanks, >> Raj. >> >>> >>> @Anuruddha: I still see that jinja2 is packed from PCA module [1]. Shall >>> we move this to configurator module? >>> >>> [1] >>> https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 >>> >>> Thanks. >>> >>> On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchi < >>> anurudd...@wso2.com> wrote: >>> Hi Raj, Thanks for pointing this out. I have now added the jinja2 dependency to configurator module and removed from PCA. [1] [1] https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam wrote: > Hi, > > I think python-pip & jinja2 should be installed by configurator > puppet module, not by python agent. > > I am using vagrant, puppet and configurator to setup my development > environment, but I am not using python agent. Since $subject is not done, > I > had to modify configurator puppet module. > > It would be better if we do the $subject. > > 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 > > -- *Thanks and Regards,* Anuruddha Lanka Liyanarachchi Software Engineer - WSO2 Mobile : +94 (0) 712762611 Tel : +94 112 145 345 a nurudd...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >>> -- >>> Akila Ravihansa Perera >>> WSO2 Inc.; http://wso2.com/ >>> >>> Blog: http://ravihansa3000.blogspot.com >>> >> >> >> >> -- >> Rajkumar Rajaratnam >> Committer & PMC Member, Apache Stratos >> Software Engineer, WSO2 >> >> Mobile : +94777568639 >> Blog : rajkumarr.com >> > > > > -- > Akila Ravihansa Perera > WSO2 Inc.; http://wso2.com/ > > Blog: http://ravihansa3000.blogspot.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- 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] [Private PaaS] python-pip & jinja2 should be installed by configurator puppet module
Hi, IMO we can define 'python-dev', 'python-pip' libraries in stratos base since they are required by configurator which is a mandatory module. Therefore, In configurator module we can inlcude jinja2; In PCA module we can include PCA related python dependencies *(**paho,psutil,gittle,pexpect,yapsy etc.);* WDYT ? On Sun, Sep 6, 2015 at 11:02 AM, Gayan Gunarathnewrote: > It is ok to redefined the python-pip module in configurator module since > currently it is used in PCA and configurator only. > > But this might be a issue with other python libraries as well if that > commonly used among the python modules.Also if there is several python > modules exists we need to redefined the libraries everywhere.IMO we may > need to include separate module for python and that module we can include > the common libraries for python. > > Thanks, > Gayan > > On Sun, Sep 6, 2015 at 9:25 AM, Akila Ravihansa Perera > wrote: > >> Hi Raj, >> >> Yes, I meant python-pip should not be removed from PCA module but should >> be installed for configurator as well. >> >> I think it should be redefined for configurator module since python-pip >> is not a compulsory package. We can use Java agent without it. >> >> Thanks. >> >> On Sun, Sep 6, 2015 at 6:17 AM, Rajkumar Rajaratnam >> wrote: >> >>> >>> >>> On Sun, Sep 6, 2015 at 7:45 AM, Akila Ravihansa Perera < >>> raviha...@wso2.com> wrote: >>> Hi Raj, I think we should not remove python-pip from PCA module since those dependencies should be installed for PCA to function. >>> >>> In the very similar way, python-pip should be installed for >>> configurator to function as well :). So if I am using java agent instead of >>> python agent, how would configurator work without python-pip? IMO, we can >>> either move python-pip to stratos_base or use [1] to redfine python-pip >>> package in configurator if it is not already defined anywhere else. >>> >>> [1] >>> http://stackoverflow.com/questions/15266347/puppet-test-if-a-package-already-defined >>> >>> Thanks, >>> Raj. >>> @Anuruddha: I still see that jinja2 is packed from PCA module [1]. Shall we move this to configurator module? [1] https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/python_agent/manifests/initialize.pp#L57 Thanks. On Sat, Sep 5, 2015 at 3:21 PM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi Raj, > > Thanks for pointing this out. I have now added the jinja2 dependency > to configurator module and removed from PCA. [1] > > [1] > https://github.com/wso2/product-private-paas/blob/master/cartridges/vm/puppet/modules/configurator/manifests/init.pp#L32 > > On Sat, Sep 5, 2015 at 3:14 PM, Rajkumar Rajaratnam < > rajkum...@wso2.com> wrote: > >> Hi, >> >> I think python-pip & jinja2 should be installed by configurator >> puppet module, not by python agent. >> >> I am using vagrant, puppet and configurator to setup my development >> environment, but I am not using python agent. Since $subject is not >> done, I >> had to modify configurator puppet module. >> >> It would be better if we do the $subject. >> >> 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 >> >> > > > -- > *Thanks and Regards,* > Anuruddha Lanka Liyanarachchi > Software Engineer - WSO2 > Mobile : +94 (0) 712762611 > Tel : +94 112 145 345 > a nurudd...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Akila Ravihansa Perera WSO2 Inc.; http://wso2.com/ Blog: http://ravihansa3000.blogspot.com >>> >>> >>> >>> -- >>> Rajkumar Rajaratnam >>> Committer & PMC Member, Apache Stratos >>> Software Engineer, WSO2 >>> >>> Mobile : +94777568639 >>> Blog : rajkumarr.com >>> >> >> >> >> -- >> Akila Ravihansa Perera >> WSO2 Inc.; http://wso2.com/ >> >> Blog: http://ravihansa3000.blogspot.com >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > 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 >