Closed elofu17 closed 8 months ago
@elofu17 please do not file tickets against Debian maintained puppet-agent package here. We do not support Debian 12 yet, so I'm going to close this. Follow https://github.com/puppetlabs/puppet/issues/9149 for updates.
It looks like the issue with core modules missing from Debian maintained puppet-agent packages is already filed as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056355
Ah! Sorry, I didn't realize they are two separate projects.
Thanks. Yes, 1056355 looks like the same bug I reported here.
Question: Why are there a Debian maintained version as well as a puppetlabs maintained version? (and the two are non-compatible) What are the pros/cons? I.e. which one should I use on all future Debian 12, 13, 14... machines?
The default install of
puppet-agent
v7 on Debian 12 lack builtin support for stuff we're used to, like augeas, sshkeys, etc.And when you manually install these core packets (apt install puppet-module-puppetlabs-augeas-core; apt install puppet-module-puppetlabs-sshkeys-core, etc) they do list as installed with
puppet module list
, but they are not found.Workaround: For some reason, adding a symlink to the module(s) in /usr/share/puppet/vendor_modules/ make puppet-agent find them.
When running
puppet agent -t
on a Debian 12 machine, I get errors like this:Steps to Reproduce
Installed a brand new Debian 12 (bookworm) machine Since the
puppet-agent
.deb package (v7) now seem to be located in the official Debian APT repo, I have not added any custom APT source. (comparison: on my Debian 11 machines I have /etc/apt/sources.list.d/puppet7.list : deb http://apt.puppetlabs.com bullseye puppet7)I declare the node baz.foo.bar in nodes.pp and assign a profile. As long as the profile and manifest don't contain any
augeas
calls (or ssh-keys, etc), everything is working fine:But if I add a augeas call - for example:
...then puppet-agent immediately bail with "Error: Failed to apply catalog: Resource type 'Augeas' was not found".
Additional Context
Package: puppet-agent Version: 7.23.0-1
The homepage for augeas_core (https://forge.puppet.com/modules/puppetlabs/augeas_core/readme) says:
So for Debian 12, that last sentence don't really apply right now.
To make puppet-agent work the way I'm used to, I currently have to run:
I guess you should do something like the following to solve this issue:
1 In the
puppet-agent
.deb package, perhaps you should add those core modules (likepuppet-module-puppetlabs-augeas-core
) as Depends.Ok, now the module is installed, but this is not enough. Because even though
puppet module list
show that it is installed......apparently it is not found since we get the "'Augeas' was not found" message.
2 I assume the module "registration" is done correctly when the above package is installed (it is located here: /usr/share/puppet/modules/augeas_core -> /etc/alternatives/puppet-module-augeas-core -> /usr/share/puppet/modules.available/puppetlabs-augeas-core).
So the bug must be in 'puppet-agent'. It need to be fixed to find and use the installed module somehow. Exactly how is up to you. Using the vendor_modules dir is just my workaround.