saltstack-formulas / salt-formula

Yes, Salt can Salt itself!
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
198 stars 421 forks source link

[FEATURE] Add versionlock feature for RHEL-based distros #513

Open mdschmitt opened 3 years ago

mdschmitt commented 3 years ago

Is your feature request related to a problem?

Not really, the functionality just exists for Debian-based systems, but not RHEL-based ones.

Describe the solution you'd like

If pin is set to true and the osfamily is RedHat, do a pkg.install yum-plugin-versionlock, then pkg.install salt with the appropriate version number, followed by cmd.run yum versionlock salt-minion (or master or whatever).

I think this could all go in salt/pin.sls.

Describe alternatives you've considered

N/A

Additional context

N/A