chef安装
加载三方源:wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://download.elff.bravenet.com/5/i386/elff-release-5-3.noarch.rpm
因为chef对ruby版本有要求,所以用下面的升级ruby
yum -y install ruby-libs ruby
升级完成后,要检查一下版本是否高于1.8.5
ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399)
安装server
yum install -y chef-server-api
包安装完成后
编写一个脚本
init_once.sh
for svc in couchdb rabbitmq-server chef-solr chef-solr-indexer chef-server
do
sudo /sbin/service $svc start
sudo /sbin/chkconfig $svc on
done
chmod o+x init_once.sh
./init_once.sh
安装web管理界面
yum install chef-server-webui
/sbin/service chef-server-webui start
/sbin/chkconfig chef-server-webui on
监听 4040
http://www.selfcai.com.cn/wp-content/uploads/2010/10/moz-screenshot-7.png
Login后,如下:(用户名:admin 密码是:p@ssw0rd1)
http://www.selfcai.com.cn/wp-content/uploads/2010/10/moz-screenshot-8.png
Client安装简单点
yum -y chef
安装好了,下次再介绍如何使用吧.我也还不太明白….学习
页:
[1]