龙空技术网

Salt-Minion部署(Suse11 sp3及Suse12)

诶蒙IT狗 79

前言:

今天兄弟们对“suse11安装教程”大致比较讲究,你们都需要分析一些“suse11安装教程”的相关资讯。那么小编也在网络上汇集了一些关于“suse11安装教程””的相关知识,希望大家能喜欢,小伙伴们快快来学习一下吧!

Suse11 sp3版本的操作如下

查看操作系统版本指令

cat /etc/SuSE-release

1.salt-minion --version查看是否已经安装minion

若已经安装,则以下步骤都不需要执行。

(python --version 查看下python版本 若python2.6 先不安装salt-minion,若版本python2.6.8,可以正常执行以下步骤)

2.将安装包上传到服务器上,放在/tmp/ 目录下,进入到安装包的路径下,按照顺序执行以下命令

rpm -ivh python-Jinja2-2.6-2.15.12.x86_64.rpm

rpm -ivh python-futures-2.1.3-0.7.1.x86_64.rpm

rpm -ivh python-msgpack-python-0.4.6-2.10.x86_64.rpm

rpm -ivh python-psutil-1.2.1-0.11.13.x86_64.rpm

rpm -ivh python-MarkupSafe-0.18-0.11.15.x86_64.rpm

rpm -ivh python-requests-1.2.3-30.1.x86_64.rpm

rpm -ivh zypp-plugin-python-0.3-2.5.38.x86_64.rpm

rpm -ivh python-pycrypto-2.6.1-1.1.x86_64.rpm

rpm -ivh libzmq4-4.0.8-2.1.x86_64.rpm

rpm -ivh python-pyzmq-14.0.0-1.2.x86_64.rpm

rpm -ivh libyaml-0-2-0.1.3-0.10.16.1.x86_64.rpm

rpm -ivh python-PyYAML-3.10-0.13.14.x86_64.rpm

rpm -ivh python-backports.ssl_match_hostname-3.4.0.2-16.1.x86_64.rpm

rpm -ivh python-certifi-2015.9.6.2-1.18.x86_64.rpm

rpm -ivh python-simplejson-2.1.1-1.9.13.x86_64.rpm

rpm -ivh python-tornado-4.2.1-3.2.x86_64.rpm

rpm -ivh salt-2016.11.4-23.1.x86_64.rpm

rpm -ivh salt-minion-2016.11.4-23.1.x86_64.rpm

省事办法:

执行Test.sh脚本即可

进入到suse安装包路径下

cd /tmp/suse

chmod +x test.sh

./test.sh

3.修改minion配置

vim /etc/salt/minion

vim /etc/salt/minion

添加

master:11.xx.xx.xx

id: 11.xx.xx.xx

(生产内网的master设置为 11.6.76.87,内网DMZ区的master设置为 11.8.17.135,外网DMZ区master设置 11.8.200.124 外联区master设置 11.9.48.58 安溪内网 11.38.76.87 安溪子公司 11.44.64.24 测试区 11.4.76.22)

4.重启服务

service salt-minion start

查看服务状态

service salt-minion status

设置开机启动

chkconfig salt-minion on

Suse12版本的操作如下

查看操作系统版本指令

cat /etc/SuSE-release

1.salt-minion --version查看是否已经安装minion

若已经安装,则以下步骤都不需要执行。

2.将安装包上传到服务器上,放在/tmp/ 目录下,进入到安装包的路径下,按照顺序执行以下命令

rpm -ivh python-Jinja2-2.6-2.15.1.noarch.rpm

rpm -ivh python-futures-2.1.3-0.7.1.x86_64.rpm

rpm -ivh python-msgpack-python-0.4.6-2.1.x86_64.rpm

rpm -ivh python-psutil-1.2.1-0.11.1.x86_64.rpm

rpm -ivh python-pycrypto-2.6.1-1.1.x86_64.rpm

rpm -ivh libzmq4-4.0.8-2.1.x86_64.rpm

rpm -ivh python-pyzmq-14.0.0-1.2.x86_64.rpm

rpm -ivh python-PyYAML-3.10-0.13.1.x86_64.rpm

rpm -ivh python-requests-2.18.4-8.1.noarch.rpm

rpm -ivh python-MarkupSafe-0.18-0.11.1.x86_64.rpm

rpm -ivh python-certifi-2015.9.6.2-1.1.x86_64.rpm

rpm -ivh python-backports.ssl_match_hostname-3.4.0.2-16.1.noarch.rpm

rpm -ivh python-simplejson-3.3.1-1.45.x86_64.rpm

rpm -ivh python-tornado-4.2.1-3.1.x86_64.rpm

rpm -ivh salt-2016.11.4-23.1.x86_64.rpm

rpm -ivh salt-minion-2016.11.4-23.1.x86_64.rpm

省事办法:

执行Test.sh脚本即可

进入到suse12安装包路径下

cd /tmp/suse12

chmod +x test.sh

./test.sh

3.修改minion配置

vim /etc/salt/minion

vim /etc/salt/minion

添加

master:11.xx.xx.xx

Id: 11.xx.xx.xx

4.重启服务

service salt-minion start

查看服务状态

service salt-minion status

设置开机启动

chkconfig salt-minion on

标签: #suse11安装教程 #suse12安装教程 #saltpython #suse开机启动 #suse开机自启动