Error on new node with non-production environment
I installed Puppet on a Windows machine with the environment automatically set to a custom environment (development). Since Puppet 4 (PE 2016.1) this is causing problems – I'm getting errors about the environment that cannot be found, e.g.: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Could not find environment 'development'
This has the effect of Marionette not being able to initialise properly. The workaround seems to be to either deploy ‘production’ first (and changing the environment afterwards) or adding a dummy environment on the client in C:\ProgramData\PuppetLabs\code\environments.
Is this a bug?