summaryrefslogtreecommitdiff
path: root/code/environments/production/modules/apt/templates/proxy.epp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-09-16 22:55:58 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-09-16 22:55:58 +0200
commit9513b93a992470e21e387db1451fa4fd21ffc5d6 (patch)
tree24b584e9a66ce00f053748ab938eecc8d91110ab /code/environments/production/modules/apt/templates/proxy.epp
parentb9c90f087cb54a0b8be222dbdcd88c8a73ef4f57 (diff)
downloadpuppet.DEV-9513b93a992470e21e387db1451fa4fd21ffc5d6.tar.gz
puppet.DEV-9513b93a992470e21e387db1451fa4fd21ffc5d6.tar.bz2
puppet.DEV-9513b93a992470e21e387db1451fa4fd21ffc5d6.zip
modules/apt: Ship puppetlabs-apt module v4.5.1.
Diffstat (limited to 'code/environments/production/modules/apt/templates/proxy.epp')
-rw-r--r--code/environments/production/modules/apt/templates/proxy.epp7
1 files changed, 7 insertions, 0 deletions
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";
+<%- } -%>