From 3f1bbf87bbcc3daa15cd7391b2949b5bf742781b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 16 Sep 2018 22:59:26 +0200 Subject: modules/apt: Ship puppetlabs-apt module v4.5.1. --- code/environments/production/modules/apt/templates/proxy.epp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 code/environments/production/modules/apt/templates/proxy.epp (limited to 'code/environments/production/modules/apt/templates/proxy.epp') diff --git a/code/environments/production/modules/apt/templates/proxy.epp b/code/environments/production/modules/apt/templates/proxy.epp new file mode 100644 index 0000000..ee663cb --- /dev/null +++ b/code/environments/production/modules/apt/templates/proxy.epp @@ -0,0 +1,7 @@ +<%- | Hash $proxies | -%> +Acquire::http::proxy "http://<%= $proxies['host'] %>:<%= $proxies['port'] %>/"; +<%- if $proxies['https'] { %> +Acquire::https::proxy "https://<%= $proxies['host'] %>:<%= $proxies['port'] %>/"; +<%- } elsif $proxies['direct'] { -%> +Acquire::https::proxy "DIRECT"; +<%- } -%> -- cgit v1.2.3