前面简单写了FreeBSD8.2系列安装master端,下面介绍下在不同的系统下安装节点端minion。

操作系统:CentOS 5.6

还是建议使用系统默认的软件配置工具安装。

需要先升级EPEL(Extra Packages for Enterprise Linux) YUM 源,默认yum源里面是没有的。
根据系统的系列,下对应的版本,5.*系列使用 5.*系列的版本,6.*系统,使用6.*的版本
#wget  "http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm"
# rpm -ivh  epel-release-5-4.noarch.rpm
导入密钥
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
 
查看是否已经可以查到salt的信息了
#yum info salt
就可以看到有可用的安装包,分别是管理端master和节点端minion。
salt-master salt-minion
 
默认系统的python的版本是2.4的,要求升级到2.6,这个安装的系统会自动安装,以及其他的倚赖包
# yum install salt minion
有15个依赖的库文件,都会自动配置好。

Transaction Test Succeeded
Running Transaction
  Installing     : zeromq                                                                                                      1/15
  Installing     : libyaml                                                                                                     2/15
  Installing     : libffi                                                                                                      3/15
  Installing     : python26-libs                                                                                               4/15
  Installing     : python26                                                                                                    5/15
  Installing     : python26-markupsafe                                                                                         6/15
  Installing     : python26-crypto                                                                                             7/15
  Installing     : python26-zmq                                                                                                8/15
  Installing     : python26-PyYAML                                                                                             9/15
  Installing     : python26-msgpack                                                                                           10/15
  Installing     : python26-m2crypto                                                                                          11/15
  Installing     : python26-babel                                                                                             12/15
  Installing     : python26-jinja2                                                                                            13/15
  Installing     : salt                                                                                                       14/15
  Installing     : salt-minion                                                                                                15/15

Installed:
  salt-minion.noarch 0:0.11.1-1.el5                                                                                                

Dependency Installed:
  libffi.i386 0:3.0.5-1.el5                   libyaml.i386 0:0.1.2-3.el5                 python26.i386 0:2.6.8-2.el5               
  python26-PyYAML.i386 0:3.08-4.el5           python26-babel.noarch 0:0.9.5-2.el5        python26-crypto.i386 0:2.3-5.el5          
  python26-jinja2.noarch 0:2.5.5-4.el5        python26-libs.i386 0:2.6.8-2.el5           python26-m2crypto.i386 0:0.21.1-5.el5     
  python26-markupsafe.i386 0:0.11-3.el5       python26-msgpack.i386 0:0.1.12-2.el5       python26-zmq.i386 0:2.1.9-3.el5           
 
配置文件:
/etc/salt/minion
 
可执行程序:
/usr/bin/salt-minion
 
执行:
service salt-minion
会报告错误,因为没有配置master的相关信息
配置文件的修改会比较简单,只要配置了master的信息就可以。
 
后续会采用FreeBSD8.2的master和 CentOS5.6的节点端测试通信情况。