saltstack源码安装

环境 centos6.3,python2.7.5。

1.install libzmq-master
$ git clone git://github.com/zeromq/libzmq.git
$ cd libzmq
$ ./autogen.sh
$ ./configure     # add other options here
$ make
$ make check
$ sudo make install
cd ..
2.install PyYAML-3.10
wget --no-check-certificate https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.10.tar.gz#md5=74c94a383886519e9e7b3dd1ee540247
tar xzvf PyYAML-3.10.tar.gz
cd PyYAML-3.10
python setup.py install
cd ..
3.install MarkupSafe
wget --no-check-certificate https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz
tar xzvf MarkupSafe-0.23.tar.gz
cd MarkupSafe-0.23
python setup.py install
cd ..
4.install Jinja
wget --no-check-certificate https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.7.3.tar.gz
tar zxvf Jinja2-2.7.3.tar.gz
cd Jinja2-2.7.3
python setup.py install
cd ..
5.install pyzmq
wget --no-check-certificate https://pypi.python.org/packages/source/p/pyzmq/pyzmq-14.3.1.tar.gz#md5=7196b4a6fbf98022f17ffa924be3d68d
tar xzvf pyzmq-14.3.1.tar.gz
cd pyzmq-14.3.1
python setup.py install
cd .. 
6.install M2Crypto
wget --no-check-certificate https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.22.3.tar.gz
tar xzvf M2Crypto-0.22.3.tar.gz
cd M2Crypto-0.22.3
python setup.py install
cd ..
7.install  msgpack-python
wget --no-check-certificate https://pypi.python.org/packages/source/m/msgpack-python/msgpack-python-0.4.2.tar.gz
tar xzvf msgpack-python-0.4.2.tar.gz
cd msgpack-python-0.4.2
python setup.py install
cd ..
8.install pycrypto-2.6
wget --no-check-certificate https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda
tar xzvf pycrypto-2.6.1.tar.gz
cd pycrypto-2.6.1
python setup.py install
cd ..
9.install salt(version 2014.1.7)
wget https://pypi.python.org/pypi/salt
cd salt
python setup.py install
cd ..
10.源码安装后,还需要手动拷贝配置文件模板到/etc/salt/内
//需要修改

cp salt-0.17.0/conf/master /etc/salt/

cp salt-0.17.0/conf/minion /etc/salt/

salt的master与minion安装方式相同,启动不同的服务即可。正确安装完毕后可以看到一批salt命令

[root@DFS-1 ~]# salt

salt salt-call salt-cp salt-key salt-master salt-minion salt-run salt-ssh salt-syndic

启动master:会启动4505、4506端口

[root@DFS-1 ~]# salt-master

启动minion:不启动任何端口

[root@DFS-1 ~]# salt-minion


reference:http://www.verydemo.com/demo_c122_i31740.html

posted @ 2014-08-04 10:14  山楂条子  阅读(2955)  评论(0编辑  收藏  举报