@SailorXiao
2015-11-25T20:18:22.000000Z
字数 1074
阅读 1930
salt
自动化运维
机器环境:
centos7 虚拟机
官方安装教程:
http://docs.saltstack.cn/zh_CN/latest/topics/installation/index.html
参考安装教程:
http://www.ttlsa.com/saltstack/install-saltstack-on-linux/
安装epel源:
wget http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
安装rpmforce:
wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
安装依赖包:
yum install python-jinja2
salt当一个新版本的Salt打包时,首先会加入到 epel-testing 仓库,以后会移到stable repo。想要从 epel-testing 安装,使用yum带上 enablerepo
安装时出现问题:
Error: Package: python-msgpack-0.4.6-1.el6.x86_64 (epel)
Requires: python(abi) = 2.6
Installed: python-2.7.5-18.el7_1.1.x86_64 (@updates)
python(abi) = 2.7
python(abi) = 2.7
Available: python-2.7.5-16.el7.x86_64 (base)
python(abi) = 2.7
python(abi) = 2.7
原因:
salt需要安装2.6版本的python,当前系统的python版本为2.7,需要替换成2.6
安装python2.6:
wget http://www.python.org/ftp/python/2.6/Python-2.6.tgz
tar xf Python-2.6.tgz
cd Python-2.6
./configure
make
make install ## 安装到/usr/local/bin中