Open Kaydub00 opened 6 years ago
According to documentation at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.yumpkg.html using pkg.upgrade I should be able to exclude packages using the pkg.upgrade module.
Salt-minions running from a Master
Salt Version: Salt: 2017.7.3 System Versions: dist: centos 7.4.1708 Core locale: UTF-8 machine: x86_64 release: 3.10.0-693.17.1.el7.x86_64 system: Linux version: CentOS Linux 7.4.1708 Core
Salt Version: Salt: 2017.7.3 System Versions: dist: centos 7.4.1708 Core locale: UTF-8 machine: x86_64 release: 3.10.0-693.11.6.el7.x86_64 system: Linux version: CentOS Linux 7.4.1708 Core
salt 'hostname' pkg.upgrade exclude='kernel*'
Does not actually exclude the kernel as stated in the documentation.
btw, I tested this w Salt salt 2018.3.4 (Oxygen)
on centos 7.5 target and its excluding kernel correctly
May need to upgrade your salt version to latest
also working as expected with 2019.2.0 on centos 7.6
According to documentation at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.yumpkg.html using pkg.upgrade I should be able to exclude packages using the pkg.upgrade module.
Setup
Salt-minions running from a Master
Salt-Master:
Salt Version: Salt: 2017.7.3 System Versions: dist: centos 7.4.1708 Core locale: UTF-8 machine: x86_64 release: 3.10.0-693.17.1.el7.x86_64 system: Linux version: CentOS Linux 7.4.1708 Core
Salt-Minion
Salt Version: Salt: 2017.7.3 System Versions: dist: centos 7.4.1708 Core locale: UTF-8 machine: x86_64 release: 3.10.0-693.11.6.el7.x86_64 system: Linux version: CentOS Linux 7.4.1708 Core
Reproduce issue
salt 'hostname' pkg.upgrade exclude='kernel*'
Does not actually exclude the kernel as stated in the documentation.