Switch to puppet 8

Problem:
Now that Puppet 8 is officially supported with Foreman 3.12/Katello 4.14 and Puppet 7 is EOL soon, I wonder what I have to do exactly to switch my existing foreman servers and proxies with puppet 7 to puppet 8.

I haven’t really found anything in the docs for the switch, only for a new installation. Is there a guide somewhere how to switch to puppet 8 without breaking everything?

Hi,

I only replaced the puppet7 repo for puppet8 repo, ran dnf update and foreman-installer and that was all.

Yepp, just update the packages to the puppet 8 ones and run installer, you should be good.
(that’s also what our pipelines do when they test upgrades from 3.11 to 3.12+)

Commands should be (assuming a connected installation):

dnf -y install https://yum.puppet.com/puppet8-release-el-8.noarch.rpm
dnf -y --refresh update
foreman-maintain service stop
foreman-installer --scenario katello

After that, sync the repos and repeat on clients and capsules.

Thanks for all the answers. Switching the puppet repository to puppet8 was really everything needed. Updated packages and ran foreman-installer to make sure everything is correctly configured.

Of course, a few puppet8 changes hit some of our own modules, e.g. the deprecation of $::fqdn