sensu/sensu-puppet

Install assets using HTTP proxy

gg3nx opened this issue · 1 comments

gg3nx commented

Hi,

Description of problem

Currently switching from Sensu Core to Sensu Go, I'm trying to install bonsai assets on systems with no direct access to internet (have to use an HTTP proxy).

I managed to install plugins with the proxy param on sensu_plugin but didn't find an equivalent to use an HTTP proxy to access remote bonsai repository? Did I miss something?

I tried to install with the sensuctl CLI with https_proxy environment variable defined. In this case it can download the asset but fails to install it because it can't authenticate to the backend through the proxy.

Is there a way to install assets using an HTTP proxy?

Thanks

Platform and version information

  • Your OS: Linux / Debian / buster (10.8)
  • Your Ruby version: 2.5.1
  • Your version of Puppet: Puppet OpenSource 6.21.5
  • Your version of Sensu: 6.2.5-4040
  • Your version of this module: v5.6.0
gg3nx commented

After some more testing I managed to use sensuctl asset add with https_proxy and no_proxy environment variables defined.
Maybe defining these and using the sensuctl provider will permit to download and install assets from bonsai.