When the agent is configured with a list of servers (via server_list), it will now request server status from the "status" endpoint instead of the "node" endpoint.

QA Risk Assessment:

Needs Assessment

Description

When the agent has a server_list it makes a node request to find the first available server. The node request will cause a puppetdb query to retrieve node and fact information, which is expensive and unnecessary. It would be better to just hit the puppetserver /status/v1/simple endpoint. This is preferable to using the ruby status endpoint, because that would require locking a JRuby instance. To do that will require making a normal HTTP request, not using the indirector.