Set proxy env variable so that rubygems works

Change-Id: Ia07abee94484137a870c0dd07678bde293e86d7f
This commit is contained in:
Xinyu Zhao 2014-03-11 22:55:36 +00:00
parent 32ec3a1a05
commit 9c7291c21e

View File

@ -6,9 +6,15 @@ chef_server_url '$chef_url'
#if $getVar('proxy', '') != ""
http_proxy '$proxy'
https_proxy '$proxy'
ENV['http_proxy'] = '$proxy'
ENV['https_proxy'] = '$proxy'
ENV['HTTP_PROXY'] = '$proxy'
ENV['HTTPS_PROXY'] = '$proxy'
#end if
#if $getVar('ignore_proxy', '') != ""
no_proxy '$ignore_proxy'
ENV['no_proxy'] = '$ignore_proxy'
ENV['NO_PROXY'] = '$ignore_proxy'
#end if
#if $getVar('chef_node_name', '') != ""
node_name '$chef_node_name'