Thought I’d add a little info for those who may want to update their puppet rpms.
Most of you have probably noticed that the guide(s) for installing the newer versions of Katello/Foreman include installing the puppet7-release rpm. But as of only a few versions ago, puppet6 was the standard.
And while there’s instructions per above for new installs, I haven’t found anything to tell folks (like me) that continially upgrade their katello/foreman how to UPGRADE puppet from 6 to 7.
The good news is it’s easy. FYI these instructions are for RHEL8-based servers. Change el-8 to el-7 below and change “dnf” to “yum” if you’re still(!) using rhel7-based hosts…
- Take a backup. Always before making any changes. I use foreman-maintain backup offline…
- Shut down foreman. foreman-maintain service stop
- Erase the puppet6 distribution. dnf erase puppet6-release. This should uninstall just the one release rpm.
- Install the new puppet7 distribution: dnf localinstall https://yum.puppet.com/puppet7-release-el-8.noarch.rpm
- Clean yum, do an update dnf clean all; dnf upfate
This should only upgrade two rpms: puppetserver and puppet-agent - Run the installer, just like for any upgrade: foreman-installer
And you should be good to go.
(Hey devs: something akin to the above should really be in the upgrade instructions sometime soon… I can see someday puppet6 going away, so… thx!)
I had no issues after doing the above. YOUR MILEAGE MAY VARY