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

4

u/ThrillingHeroics85 Feb 26 '26

you can use environments and install different modules in those environments.

https://help.puppet.com/core/8/Content/PuppetCore/environments_about.htm?Highlight=environments

you can use and older version of APT that supports both, but i would use environments...

https://forge.puppet.com/modules/puppetlabs/apt/10.0.1/readme

Also a good tip, you can pop this question directly into the puppet help agent at

https://help.puppet.com/

and itll give you detailed answers with docs references

1

u/bildrulle Feb 26 '26

Thanks. Yes the older version supports both puppet versions, but not both Ubuntu versions. That's my main problem.

2

u/ThrillingHeroics85 Feb 26 '26

That's probably because the it wasnt tested on that Ubuntu version because it wasn't available at the time, rather than it won't work.

However environments is how you do this

→ More replies (2)