diff --git a/example/vagrant-input-config.yaml b/example/vagrant-input-config.yaml index a84740d0..8e40e838 100644 --- a/example/vagrant-input-config.yaml +++ b/example/vagrant-input-config.yaml @@ -47,3 +47,5 @@ spec: dns_servers: - 8.8.8.8 - 8.8.4.4 + #http_proxy: http://proxy.example.com:8080 + #https_proxy: https://proxy.example.com:8080 diff --git a/promenade/templates/common/etc/apt/apt.conf.d/20-proxy.conf b/promenade/templates/common/etc/apt/apt.conf.d/20-proxy.conf new file mode 100644 index 00000000..3003912e --- /dev/null +++ b/promenade/templates/common/etc/apt/apt.conf.d/20-proxy.conf @@ -0,0 +1,7 @@ +#Promenade Generated +{% if config['Network']['http_proxy'] is defined %} +Acquire::http::Proxy "{{ config['Network']['http_proxy'] }}"; +{% endif %} +{% if config['Network']['https_proxy'] is defined %} +Acquire::https::Proxy "{{ config['Network']['https_proxy'] }}"; +{% endif %}