From 492fd2351a3ae736547591f6b7a1f3df26bbd00d Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Mon, 20 Jul 2015 15:13:45 +0200 Subject: [PATCH] Add rsync_proxy settings Add the ability to setup rsync_proxy var into our templates. Change-Id: I4522aabe306513ce3c104140136e07cdd0ceb836 --- manifests/http.pp | 1 + templates/profile_proxy.sh.erb | 4 ++++ 2 files changed, 5 insertions(+) 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 -%>