tmatilai / vagrant-proxyconf

Vagrant plugin that configures the virtual machine to use proxies
MIT License
531 stars 74 forks source link

no_proxy configuration ignored with libvirt/qemu kvm provider #235

Closed benbugohit closed 3 years ago

benbugohit commented 3 years ago

Tried adding a .example.foo.domain in "VAGRANT_NO_PROXY" and "no_proxy" variables in CentOS7 host,

benbugohit commented 3 years ago

Digged into code, reported behavior seems to be "normal" regarding /etc/yum.conf updating, not specific /etc/yum.repos.d/* files which contain baseurl ending with ".example.foo.domain".

So this bug seems to be a feature request

codylane commented 3 years ago

Hello @benbugohit,

Thank you for reporting the issue. I won't lie that I am having a bit of a hard time trying to understand the exact issue you are having and I am hoping we can work together to diagnose and resolve (if there is a solution).

I am wondering if you could please try and provide some examples of what the expected behavior is and potentially a way I can try and reproduce this? I think I am understanding your issue is that you want to add a no_proxy in a repo file in /etc/yum.repos.d/*?

After consulting the yum.conf documentation and searching the internet, I am not sure that yum actually has the notion of the no_proxy setting or environment variable.

Here's are all the settings for proxy from the yum.conf.

codylane commented 3 years ago

No further information received and it doesn't appear that yum has a no_proxy option. However that said, I do wonder if you could work around this by using ansible by adding proxy=_none_ in your repo file in question as stated in the man page for yum.conf.