原因应该是: CentOS6 版本太老, 导致python模块丢失
## 1.安装yum依赖
# yum install -y gcc python27-devel
## 2.安装pip
# yum install -y python27-pip ##
#(1)安装distribute ## 解决问题: ImportError: No module named pkg_resources
## 下载地址 https://pypi.org/project/distribute/
# pwd
/tmp/python/distribute-0.7.3
# python2.7 setup.py install
#(2)安装pip==9.0.1 ## 解决问题: pkg_resources.DistributionNotFound: pip==9.0.1
## 下载地址 https://pypi.org/project/pip/9.0.1/
# pwd
/tmp/python/pip-9.0.1
# python2.7 setup.py install
##(3)升级setuptools-12.0.3
## 下载地址 https://pypi.org/project/setuptools/12.0.3/
# pwd
/tmp/python/setuptools-12.0.3
# python2.7 setup.py install
## 3.安装salt所需要的python模块
## 包依赖是从正常的salt-minion机器上执行命令获得
# pip2.7 download --dest=/tmp/python/salt/ salt==2019.2.7 # 正常机器执行操作
## 将正常机器的python依赖拷贝到有问题的机器
# pwd
/tmp/python/salt
## 执行命令安装salt依赖
# pip2.7 install backports_abc-0.5-py2.py3-none-any.whl
# pip2.7 install certifi-2021.10.8-py2.py3-none-any.whl
# pip2.7 install chardet-4.0.0-py2.py3-none-any.whl
# pip2.7 install futures-3.3.0-py2-none-any.whl
# pip2.7 install idna-2.10-py2.py3-none-any.whl
# pip2.7 install Jinja2-2.11.3-py2.py3-none-any.whl
# pip2.7 install MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl
# pip2.7 install pyzmq-19.0.2-cp27-cp27mu-manylinux1_x86_64.whl
# pip2.7 install requests-2.27.1-py2.py3-none-any.whl
# pip2.7 install singledispatch-3.7.0-py2.py3-none-any.whl
# pip2.7 install six-1.16.0-py2.py3-none-any.whl
# pip2.7 install urllib3-1.26.8-py2.py3-none-any.whl
## 安装以下依赖, 首先解压缩, 然后进入到相应目录执行命令 python2.7 setup.py install
salt-2019.2.7
PyYAML-3.13
msgpack-1.0.3
pycrypto-2.6.1
tornado-5.1.1
## 安装完依赖后,重启salt-minion
# /etc/init.d/salt-minion restart
## 4. 安装完成后在 11.100.5.139上 salt 'yourip' test.ping 看看是否有返回值,如果没有返回值,可能是 证书问题
## (1)在11.100.5.139上操作
# pwd
/etc/salt/pki/master/minions
## ll | grep yourip ## 查看是否有 salt-minion所在机器的ip文件, 如果有删除
## (2)在salt-minion操作 重启
# /etc/init.d/salt-minion restart