salt github地址:https://github.com/saltstack/salt
目前salt的几个主要版本参见github里面的版本线图,最新的是2017.7,貌似有点不太友好,可能不太兼容之前master的一些配置,当我直接从2015.10版本升级到2017.7的版本的时候,执行任务时报错,且影响到之前的外部job store配置,报错信息如下:
(1)Could not deserialize msgpack message.This often happens when trying
to read a file not in binary modeTo see message payload, enable debug logging
and retry. Exception: unpack(b) received extra data.
(2)KeyError: "Returner 'mysql' does not support function prep_jid"
将salt-master版本将至salt-master 2016.11.7时,没有报错信息产生,至于兼容性
怎么样,有待观察。
版本升级的动机:
由于最近在整理一些salt的官方文档的时候,发现salt package manager的功能在
2015年的版本中没有,比较了2015的文档和2016年的文档,之间的差异有些地方较大
为了便于以后功能提升和安全考虑尽量跟上官方的脚步吧。
salt包的下载地址:
(1)在官方站点下载,可选择对应的平台
https://repo.saltstack.com/
(2)在github上下载
https://github.com/saltstack/salt/releases
(3)在系统yum里下载
https://repo.saltstack.com/2016.11.html#rhel
简单介绍一下安装:
(1)配置saltstack源:
1 [saltstack-repo] 2 name=SaltStack repo for RHEL/CentOS $releasever 3 baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest 4 enabled=1 5 gpgcheck=0