一 配置yum源
配置之前先备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
二 安装环境包
yum -y install python-crypto m2crypto PyYAML python-mako python-setuptools Cython
wget -c http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -ivh epel-release-6-8.noarch.rpmyum -y install salt-master //masteryum -y install salt-minion //client
原文:http://www.cnblogs.com/YingLai/p/6704413.html