Set proxy env variable so that rubygems works
Change-Id: Ia07abee94484137a870c0dd07678bde293e86d7f
This commit is contained in:
parent
32ec3a1a05
commit
9c7291c21e
@ -6,9 +6,15 @@ chef_server_url '$chef_url'
|
|||||||
#if $getVar('proxy', '') != ""
|
#if $getVar('proxy', '') != ""
|
||||||
http_proxy '$proxy'
|
http_proxy '$proxy'
|
||||||
https_proxy '$proxy'
|
https_proxy '$proxy'
|
||||||
|
ENV['http_proxy'] = '$proxy'
|
||||||
|
ENV['https_proxy'] = '$proxy'
|
||||||
|
ENV['HTTP_PROXY'] = '$proxy'
|
||||||
|
ENV['HTTPS_PROXY'] = '$proxy'
|
||||||
#end if
|
#end if
|
||||||
#if $getVar('ignore_proxy', '') != ""
|
#if $getVar('ignore_proxy', '') != ""
|
||||||
no_proxy '$ignore_proxy'
|
no_proxy '$ignore_proxy'
|
||||||
|
ENV['no_proxy'] = '$ignore_proxy'
|
||||||
|
ENV['NO_PROXY'] = '$ignore_proxy'
|
||||||
#end if
|
#end if
|
||||||
#if $getVar('chef_node_name', '') != ""
|
#if $getVar('chef_node_name', '') != ""
|
||||||
node_name '$chef_node_name'
|
node_name '$chef_node_name'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user