我用的hermes版本为0.7.9
需要安装如下包:
hermes-0.7.9-1.1.x86_64.rpm hermes-herminator-0.7.9-1.1.x86_64.rpm hermes-starship-0.7.9-1.1.x86_64.rpm
hermes-obs-0.7.9-1.1.x86_64.rpm perl-Class-ISA-0.36-6.1.noarch.rpm
其中hermes-starship-0.7.9-1.1.x86_64.rpm需要用depeds强制安装
下面开始安装配置:
1、拷贝conf/hermes.conf.in 到 /etc/hermes.conf
$DB{ 'default' } = { 'type' => 'mysql',
'port' => 3306,
'name' => 'hermes',
'user' => 'root',
'pass' => 'turbolinux' };
# DEBUG - set to 1 to enable debug. No mail is sent in debug mode.
$Debug = 0;
...
$OBSAPIBase = "http://172.16.70.28:81";
#
# the OBS API credentials
$OBSAPIUser = 'Admin';
$OBSAPIPwd = 'opensuse';
...
$authentication = "ichaintest-obs";
2、添加好1中文件后检测是否正确:
perl -c /etc/hermes.conf
/etc/hermes.conf syntax OK
3、启动hemes服务
sudo rchermes start
4、将mod_cgi模块添加进lighttp:
编辑文件/etc/lighttpd/modules.conf:
##
## plain old CGI (mod_cgi)
##
include "conf.d/cgi.conf"
在lighttp.conf文件中添加进
index-file.names += ("index.cgi")
6、添加hermes.conf文件到vhost中,具体请见hermes.conf文件
7、改变config/environments/production.rb中的认证AUTHENTICATION = :off
8、添加或安装hermes数据
$ rm -f db/schema.rb
$ RAILS_ENV=production rake db:migrate
9、用脚本user-hermes添加用户。
重新启动hermes服务