saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.22k stars 5.49k forks source link

pkg.upgrade with exclude does not exclude package on CentOS 7 #45924

Open Kaydub00 opened 6 years ago

Kaydub00 commented 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.

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.

perfecto25 commented 5 years ago

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

vosscodes commented 5 years ago

also working as expected with 2019.2.0 on centos 7.6