Open kreeuwijk opened 4 years ago
@WhatsARanjit ^^
Hit this problem on 2019.7.0, switching over to @kreeuwijk 's fork fixed node_groups() for me.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
@Ramesh7 @jonathannewman Is this PR still viable or has it been superseded and can it be closed?
The mechanism used is now deprecated in favor of Http::Client
https://www.rubydoc.info/gems/puppet/Puppet/Network/HttpPool
so it will need to be updated.
The mechanism used is now deprecated in favor of
Http::Client
https://www.rubydoc.info/gems/puppet/Puppet/Network/HttpPoolso it will need to be updated.
But do we need to update this or has the original problem been solved?
But do we need to update this or has the original problem been solved?
It is a performance optimization. Ideally it would be updated, but it will function without it.
@kreeuwijk hi! Any chance you can rebase this?
This reimplements the
do_https()
method, moving away fromNet::HTTP
, in favor ofPuppet::Network::HttpPool.connection
. This is becauseNet::HTTP
gets emulated by JRuby in Puppetserver, and fails to connect via SSL, citing ahandshake_failure
. Instead, this uses Puppet's own HTTP client, which works correctly in both Puppet Agent and Puppetserver. This change makesnode_groups()
work correctly again on newer PE versions that enforce TLS 1.2.