diff --git a/manifests/http.pp b/manifests/http.pp index 12493da..06ca056 100644 --- a/manifests/http.pp +++ b/manifests/http.pp @@ -18,6 +18,7 @@ class setproxy::http ( $http_proxy = undef, $https_proxy = undef, + $rsync_proxy = undef, $no_proxy = undef, ) { diff --git a/templates/profile_proxy.sh.erb b/templates/profile_proxy.sh.erb index ea7135e..b2c236b 100644 --- a/templates/profile_proxy.sh.erb +++ b/templates/profile_proxy.sh.erb @@ -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 -%>