Add rsync_proxy settings

Add the ability to setup rsync_proxy var into
our templates.

Change-Id: I4522aabe306513ce3c104140136e07cdd0ceb836
This commit is contained in:
Yolanda Robla 2015-07-20 15:13:45 +02:00
parent d5dc9e2612
commit 492fd2351a
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@
class setproxy::http (
$http_proxy = undef,
$https_proxy = undef,
$rsync_proxy = undef,
$no_proxy = undef,
) {

View File

@ -6,6 +6,10 @@ export HTTP_PROXY=<%= @http_proxy %>
export https_proxy=<%= @https_proxy %>
export HTTPS_PROXY=<%= @https_proxy %>
<% end -%>
<% if @rsync_proxy -%>
export rsync_proxy=<%= @rsync_proxy %>
export RSYNC_PROXY=<%= @rsync_proxy %>
<% end -%>
<% if @no_proxy -%>
export no_proxy=<%= @no_proxy %>
<% end -%>