Unable to generate puppet resource types
All puppet agents of a certain environment have started to show this issue: https://tickets.puppetlabs.com/browse/MODULES-5802
To spare you from reading through the whole thing, there were two remedies suggested:
First, restart the server. This I tried, without effect.
Second, the thing that apparently worked for everybody is to regenerate the resource types:
This is looking a lot like environment bleed.
Something worth trying (and has worked for another user) is using puppet generate to generate pcore types, you can read more here . If you’re using r10k, you’ll run into a problem of course. The current recommendations for that scenario are here.
The problem is, when I try to run
puppet generate types --environment development Puppet seems to look in the wrong folder for the environments:
Could not find a directory environment named 'development' anywhere in the path: /opt/puppetlabs/server/data/puppetserver/.puppetlabs/etc/code/environments
This is despite the fact that the environment path is given as an absolute in puppet.conf:
environmentpath = //etc/puppetlabs/code/environments
In fact, changing that folder doesn’t affect anything. It’s as if that file isn’t even read.
Being very inexperienced with foreman, having “inherited” the setup from my predecessor, I wonder if this is due to puppet being managed by foreman, and how I would go about regenerating these types in a puppet installation managed by foreman.
It would be nice if my development environment worked again…
Foreman and Proxy versions:
proxy: No idea where to look that up…