| Some background on the "production" directory. When directory environments were introduced in puppet 3.x, "production" was a hardcoded default, and had to exist on the filesystem somewhere, so PUP-2519 and https://github.com/puppetlabs/puppet/commit/8e70dd65a5d5d57b97ca1ae0ff588a232e06bb21#diff-feceffda334b8cc3287b33394350b4ec29a27ae6efad4bbd188e9c892f7107acR1089-R1102 created it. However, puppet could run into problems when running puppet config and other CLI applications that don't need an environment directory. In PUP-6739, we introduced the idea of an environment_mode, so that applications could opt-out, e.g. puppet help, puppet agent, puppet plugin, etc. See also PUP-10796. I think ideally we would never create the "production" directory. but I don't know what assumptions may be built up around that. |