Hi, Dev The issue is not from init.sh and config.sh. It's from CA package.
Please help, Thanks -D [root@abc-42 bin]# puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for abc002-42.cisco.com Info: Applying configuration version '1432162809' Notice: Installed package: unzip Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[unzip]/Notify[unzip]/message: defined 'message' as 'Installed package: unzip' Notice: Installed package: nano Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[nano]/Notify[nano]/message: defined 'message' as 'Installed package: nano' Notice: Installed package: git Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[git]/Notify[git]/message: defined 'message' as 'Installed package: git' Notice: Installed package: wget Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[wget]/Notify[wget]/message: defined 'message' as 'Installed package: wget' Notice: Installed package: curl Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[curl]/Notify[curl]/message: defined 'message' as 'Installed package: curl' Error: Could not find command 'apt-get' Error: /Stage[main]/Stratos_base/Exec[base-update-apt]/returns: change from notrun to 0 failed: Could not find command 'apt-get' Notice: /Stage[main]/Stratos_base/Package[git]: Dependency Exec[base-update-apt] has failures: true Warning: /Stage[main]/Stratos_base/Package[git]: Skipping because of failed dependencies Notice: /Stage[main]/Stratos_base/Package[wget]: Dependency Exec[base-update-apt] has failures: true Warning: /Stage[main]/Stratos_base/Package[wget]: Skipping because of failed dependencies Notice: /Stage[main]/Stratos_base/Package[zip]: Dependency Exec[base-update-apt] has failures: true Warning: /Stage[main]/Stratos_base/Package[zip]: Skipping because of failed dependencies Notice: /Stage[main]/Stratos_base/Package[curl]: Dependency Exec[base-update-apt] has failures: true Warning: /Stage[main]/Stratos_base/Package[curl]: Skipping because of failed dependencies Notice: /Stage[main]/Stratos_base/Package[nano]: Dependency Exec[base-update-apt] has failures: true Warning: /Stage[main]/Stratos_base/Package[nano]: Skipping because of failed dependencies Notice: Installed package: zip Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[zip]/Notify[zip]/message: defined 'message' as 'Installed package: zip' Notice: /Stage[main]/Stratos_base/Package[tar]: Dependency Exec[base-update-apt] has failures: true Warning: /Stage[main]/Stratos_base/Package[tar]: Skipping because of failed dependencies Notice: /Stage[main]/Stratos_base/Package[unzip]: Dependency Exec[base-update-apt] has failures: true Warning: /Stage[main]/Stratos_base/Package[unzip]: Skipping because of failed dependencies Notice: Installed package: tar Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[tar]/Notify[tar]/message: defined 'message' as 'Installed package: tar' Error: /Package[python-pip]: Provider apt is not functional on this host Error: /Package[python-dev]: Provider apt is not functional on this host Error: /Package[gcc]: Provider apt is not functional on this host Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-paho]: Dependency Package[python-dev] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-paho]: Dependency Exec[base-update-apt] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-paho]: Dependency Package[python-pip] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-paho]: Dependency Package[gcc] has failures: true Warning: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-paho]: Skipping because of failed dependencies Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-GitPython==0.3.1-beta2]: Dependency Package[python-dev] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-GitPython==0.3.1-beta2]: Dependency Exec[base-update-apt] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-GitPython==0.3.1-beta2]: Dependency Package[gcc] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-GitPython==0.3.1-beta2]: Dependency Package[python-pip] has failures: true Warning: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-GitPython==0.3.1-beta2]: Skipping because of failed dependencies Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-psutil]: Dependency Package[python-dev] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-psutil]: Dependency Exec[base-update-apt] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-psutil]: Dependency Package[python-pip] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-psutil]: Dependency Package[gcc] has failures: true Warning: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-psutil]: Skipping because of failed dependencies Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-gittle]: Dependency Package[python-dev] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-gittle]: Dependency Exec[base-update-apt] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-gittle]: Dependency Package[gcc] has failures: true Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-gittle]: Dependency Package[python-pip] has failures: true Warning: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-gittle]: Skipping because of failed dependencies Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-pexpect]: Dependency Package[python-dev] has failures: tr On Fri, May 22, 2015 at 2:51 AM, Gayan Gunarathne <gay...@wso2.com> wrote: > In the init.sh[1] there are condition for CentOS. AFAIU CentOS specific > things handle through this.Why we are using separate init.sh for CentOS. > What is the difference of those two init.sh? > > https://github.com/apache/stratos/blob/master/tools/init-scripts/init.sh > > Thanks, > Gayan > > > > On Fri, May 22, 2015 at 3:14 PM, Udara Liyanage <ud...@wso2.com> wrote: > >> >> I just wrote the last sentence in a different manner since we not >> necessarily need to mention who writes the scripts. Please pick the best >> one. >> On Fri, May 22, 2015 at 3:07 PM, Mariangela Hills <mariang...@wso2.com> >> wrote: >> >>> Hi Devs, >>> >>> For the purpose of greater clarity, I added the following as a separate >>> note, so that the user does not miss it. >>> >>> "The init.sh and config.sh files are OS specific. Stratos ships >>> config.sh for Debian/Ubuntu and CentOS operating systems. While, >>> Stratos ships init.sh for Debian/Ubuntu. These scripts are accessible >>> in the <STRATOS_SOURCE_HOME>/tools/init-scripts/ directory. *Note that >>> DevOps will have to write their own script for any other operating system. >>> "* >>> The init scripts have to be customized for any other operation system. >>> >> >>> >>> Regards, >>> Mariangela >>> >>> >>> >>> >>> *--* >>> *Mariangela Hills* >>> PMC Member & Committer of Apache Stratos >>> Senior Technical Writer >>> WSO2, Inc. >>> lean.enterprise.middleware. >>> m: +94 773 500185 >>> w: http://wso2.com >>> <http://wso2.com/events/> >>> >>> On Fri, May 22, 2015 at 10:15 AM, Rajkumar Rajaratnam < >>> rajkum...@wso2.com> wrote: >>> >>>> Thanks Isuru for pointing this out! >>>> >>>> Stratos ships init.sh for Centos as well. It is there at >>>> https://github.com/apache/stratos/tree/master/tools/init-scripts/centos >>>> . >>>> >>>> Thanks. >>>> >>>> On Fri, May 22, 2015 at 10:10 AM, Isuru Haththotuwa <isu...@apache.org> >>>> wrote: >>>> >>>>> >>>>> >>>>> On Fri, May 22, 2015 at 10:08 AM, Rajkumar Rajaratnam < >>>>> rajkum...@wso2.com> wrote: >>>>> >>>>>> Hi David, >>>>>> >>>>>> Setup scripts (config.sh and init.sh) are OS specific. Stratos ships >>>>>> config.sh for Debian/Ubuntu operating systems. DevOps will have to write >>>>>> their own script for any other operating system. >>>>>> >>>>>> Please refer [1] for more details. >>>>>> >>>>>> @Mari, [1] is from 4.0.0. Where do we have these information for >>>>>> 4.1.0? >>>>>> >>>>> >>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Cartridge#id-4.1.0Cartridge-Genericcartridge >>>>> >>>>>> >>>>>> 1. >>>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Cartridge#id-4.0.0Cartridge-Genericcartridge >>>>>> >>>>>> Thanks. >>>>>> >>>>>> On Fri, May 22, 2015 at 3:20 AM, david hbase <davidhb...@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Try deploy tomcat cartridge with RHEL 6.5, the init script from: >>>>>>> https://github.com/apache/stratos/tree/master/tools/init-scripts >>>>>>> >>>>>>> Run ./config.sh andgot the following errors: >>>>>>> >>>>>>> Error: Could not find command 'apt-get' >>>>>>> Error: /Stage[main]/Stratos_base/Exec[base-update-apt]/returns: >>>>>>> change from notrun to 0 failed: Could not find command 'apt-get' >>>>>>> >>>>>>> Looks like the Python cartridge is designed for ubuntu only? not >>>>>>> sure, Please confirm >>>>>>> >>>>>>> Thanks >>>>>>> -D >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Rajkumar Rajaratnam >>>>>> Committer & PMC Member, Apache Stratos >>>>>> Software Engineer, WSO2 >>>>>> >>>>>> Mobile : +94777568639 >>>>>> Blog : rajkumarr.com >>>>>> >>>>>> -- >>>>>> <http://rajkumarr.com> >>>>>> <http://rajkumarr.com> >>>>>> Thanks and Regards, >>>>>> >>>>>> Isuru H. >>>>>> <http://rajkumarr.com> >>>>>> +94 716 358 048 <http://rajkumarr.com>* <http://wso2.com/>* >>>>>> >>>>>> >>>>>> * <http://wso2.com/>* >>>>>> >>>>>> >>>>>> >>>> >>>> >>>> -- >>>> Rajkumar Rajaratnam >>>> Committer & PMC Member, Apache Stratos >>>> Software Engineer, WSO2 >>>> >>>> Mobile : +94777568639 >>>> Blog : rajkumarr.com >>>> >>> >>> >> >> >> -- >> >> Udara Liyanage >> Software Engineer >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> >> web: http://udaraliyanage.wordpress.com >> phone: +94 71 443 6897 >> > > > > -- > > Gayan Gunarathne > Technical Lead > WSO2 Inc. (http://wso2.com) > email : gay...@wso2.com | mobile : +94 766819985 > >