Prior to this, on newer Puppet Enterprise versions (2017.3) using the
node_group resource would throw an error message as shown below. This
apparently has to do with jruby not being able to handle
Object.const_get with leading '::'
(https://github.com/jruby/jruby/issues/1487).
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation
Error: Error while evaluating a Function Call, wrong constant name Net::HTTP::Get
This fixes that by calling the Net::HTTP methods directly.
Prior to this, on newer Puppet Enterprise versions (2017.3) using the node_group resource would throw an error message as shown below. This apparently has to do with jruby not being able to handle Object.const_get with leading '::' (https://github.com/jruby/jruby/issues/1487).
This fixes that by calling the Net::HTTP methods directly.