I've been trying to figure out how to convert
dnf module reset php
dnf module install php:remi-7.4
to a stanza in a puppet module for several hours without any success.
Has anyone figured out how to do that? The doco on the puppet website is somewhat lacking, shall we say.
I believe that reset isn't implemented with
dnf module
yet, just enable and disable, but it can be used as a package manager directly.From a quick test on a CentOS 8 docker image this worked for me:
I think the repos could be refactored to
yumrepo
resources, but this is a good base to usednf module
with Puppet.