Improve puppet class importer error reporting, and allow environment specific overrides
When importing classes, if any of the environments have an issue, foreman throws a stack track that's pretty generic:
406 Not Acceptable
It would be useful to know which environment(s) threw the error and allow an override, if one still wants to continue with import for other environments.
Here is an example of the smart-proxy debug log:
puppet.mydomain.com - - [02/Oct/2013:17:29:09 EDT] "GET /puppet/environments HTTP/1.1" 200 48
puppet.mydomain.com - - [02/Oct/2013:17:29:09 EDT] "GET /puppet/environments/dev/classes HTTP/1.1" 200 29455
puppet.mydomain.com - - [02/Oct/2013:17:29:18 EDT] "GET /puppet/environments/prod/classes HTTP/1.1" 200 2
> /puppet/environments/prod/classes -> /puppet/environments/test/classes
puppet.mydomain.com - - [02/Oct/2013:17:29:18 EDT] "GET /puppet/environments/test/classes HTTP/1.1" 406 127
In this case the test environment was broken.. was we couldn't import classes in other envs.
No data to display