no_proxy Proxy support in Chef -


chef has support proxy server see example http://www.rubydoc.info/gems/chef/chef/http/basicclient#http_client_builder-instance_method

this client http_client_builder example used remote_file.

as documentation shows there no support no_proxy sites.

so if 1 want combine remote_file resources sites before , behind proxy server there problem. chef cannot both. 1 cannot combine remote_file resources before , behind proxy server. there no way tell chef configured proxy server should not used sites. there no no-proxy setting.

what best practice deal issue in chef? there suggestions unset proxy server before resources not accessible through proxy server. these not work. see example https://serverfault.com/questions/498683/one-off-use-of-http-proxy-in-a-chef-remote-file-resource

should 1 split recipes have remote_file resources before , after proxy server?

that way have 2 types of chef runs. 1 recipe use proxy server 1 recipes should not use proxy server?

this not true. please check source code.

see: https://github.com/chef/chef/blob/master/lib/chef/http/basic_client.rb#l114-l117


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -