简体   繁体   English

在CentOS 5.10上使用Opscode Cookbook安装Tomcat6

[英]Installing Tomcat6 using Opscode cookbook on CentOS 5.10

I'm trying to install tomcat6 using opscode chef cookbook. 我正在尝试使用opscode Chef Cookbook安装tomcat6。 I get following error. 我收到以下错误。

Recipe: tomcat::default
  * package[tomcat6] action install
    * No version specified, and no candidate version available for tomcat6
================================================================================
Error executing action `install` on resource 'package[tomcat6]'
================================================================================


Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for tomcat6

Apparently there is no package named tomcat6 when I try yum install tomcat6. 当我尝试yum install tomcat6时,显然没有名为tomcat6的软件包。 How to fix this ? 如何解决呢? I tried adding yum and yum-epel cookbooks but they are not a solution as they over-write my yum files. 我尝试添加yum和yum-epel食谱,但由于它们会覆盖我的yum文件,因此它们不是解决方案。 Is there a way I can source the tomcat package from a zip file in a URL and install using that by modifying opscode cookbook ? 有没有一种方法可以从URL中的zip文件中获取tomcat软件包,并通过修改opscode cookbook使用该软件包进行安装?

wrap that ospcode cookbook into yours and add following execution before invoking that tomcat::default 将ospcode食谱包装到您的ospcode食谱中,并在调用该tomcat::default之前添加以下执行

cd /etc/yum.repos.d
wget 'http://www.jpackage.org/jpackage50.repo'
yum update

to have available the tomcat6 package you got to add the jpackage repository. 为了使tomcat6包可用,您必须添加jpackage存储库。 I made a cookbook to add the repository in the rhel family. 我制作了一个食谱,将存储库添加到rhel家族中。

https://github.com/psyreactor/yum-jpackage-cookbook https://github.com/psyreactor/yum-jpackage-cookbook

Just include yum-jpackage in your node's run_list. 只需在节点的run_list中包含yum-jpackage即可。

In the readme.md are detail settings 在readme.md中是详细信息设置

sorry for my English best regards 对不起,我英语致谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM