EncoreTechnologies / puppet-powershellmodule

Apache License 2.0
6 stars 6 forks source link

Proxy support #33

Open benohara opened 3 years ago

benohara commented 3 years ago

If ive got a machine setup with nuget and psgallery configured, i can use pspackage wit the install_options to pass a proxy which works.

However, on a new machine, i dont appear to be able to install nuget or configure the psgallery repo when behind a proxy.

Its possible to pass -Proxy to Install-PackageProvider and Set-PSRepository, but from a quick attept at hacking it into the code it appers the prxy info isnt returned in the get-packageprovider or get-psrepository and as such it changes each subsequent run.

Is it possible to do at east the initial nuget install via a proxy?

benohara commented 3 years ago

also appears if no system wide proxy set get-psrepository shows the psgallery repo as missing if it cant connect (hence setting proxy when creating/updating would be helpful)