wget works manually but fails in the Chef bash -


[updated] modified actual path

i wrote script fetch installation file aws s3 bucket. works manually using wget in terminal failed in chef run.

error:

resolving s3.amazonaws.com... failed: no address associated hostname. wget: unable resolve host address “s3.amazonaws.com” 

script:

bash 'hp_file'   user 'root'   cwd '/tmp'   code <<-eoh   wget https://s3.amazonaws.com/preprod.useast1/platforms/hp+om/software_operations_agent_v11.14_linux_iso_tc200-88000.iso   eoh end 

any idea went wrong? i've read questions spacing issue, doesn't seem cause in case. appreciated. thanks.

here solution solved issue. chef client did not take global proxy setting ($http_proxy , $https_proxy) machine. fix modify client.rb adding line:

http_proxy 'http://http-proxy.example.com:port' 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -