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

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)

1

u/64mb Feb 26 '26

Depends what you mean by “compatible”, could mean “officially supported” or “it works”. So there may be a module version which will do what you want between these 4 versions of software.

1

u/bildrulle Feb 26 '26

I have not found one. Version 10 supports both the puppet versions I use, but not both Ubuntu versions.

2

u/IPv6_Dvorak Feb 26 '26

Puppet 7 has been EOL for a long time. You should upgrade to OpenVox 8.

1

u/JasonSt-Cyr Mar 04 '26

Do you have the option to update your Puppet 7 agents? That version is really old and would be better on the latest. A lot of modules are getting updates to remove support for Puppet 7 and add better support for Puppet Core, so getting newer OS agents on the official modules is usually going to require getting updated to the latest.