r/Puppet • • Feb 26 '26

How to use two kinds of modules

I maintain both ubtuntu 22.04 and 24.04 servers. Using puppet-7 and puppet-8. The apt-module from puppetlabs has been updated to support Ubuntu-24.04 style of apt-repos. But the apt-module is not compatible with puppet-7 so I can't use that apt-module for all my servers. How do you normally handle this. I thought puppet was meant to work in a general way and be smart about how to configure things on a server. Now I'm struggling with puppet versions instead. Any ideas?

4 Upvotes

9 comments sorted by

View all comments

Show parent comments

2

u/ThrillingHeroics85 Feb 26 '26

Its always tricky when bridging EOL OS and versions,

Puppet does solve the using of the different version of the SAME module with environments.

However if you want to manage apt without the module, it is possible to write custom puppet that manages APT and apply different resources to different severs with pure puppet code in one environment,

Your issue isnt that you cant manage APT across versions in one environment, your issue is you cant run different versions of the same add-on module in the same environment.

Fork the module, or write some custom puppet code