From f56d2d7888be1a27d7ef05d850afdc4e9dbb464a Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 20 Dec 2021 12:39:15 +0100 Subject: initial draft of a minimal puppet config template --- 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