diff --git a/modules/tfe_init/templates/aws.ubuntu.docker.tfe.sh.tpl b/modules/tfe_init/templates/aws.ubuntu.docker.tfe.sh.tpl index 7bf324a..195f489 100644 --- a/modules/tfe_init/templates/aws.ubuntu.docker.tfe.sh.tpl +++ b/modules/tfe_init/templates/aws.ubuntu.docker.tfe.sh.tpl @@ -32,6 +32,11 @@ https_proxy="${proxy_ip}:${proxy_port}" no_proxy="${no_proxy}" EOF +/bin/cat </etc/apt/apt.conf +Acquire::http::Proxy "http://${proxy_ip}:${proxy_port}"; +Acquire::https::Proxy "https://${proxy_ip}:${proxy_port}"; +EOF + export http_proxy="${proxy_ip}:${proxy_port}" export https_proxy="${proxy_ip}:${proxy_port}" export no_proxy="${no_proxy}" diff --git a/modules/tfe_init/templates/azurerm.ubuntu.docker.tfe.sh.tpl b/modules/tfe_init/templates/azurerm.ubuntu.docker.tfe.sh.tpl index a95e1f6..10efabc 100644 --- a/modules/tfe_init/templates/azurerm.ubuntu.docker.tfe.sh.tpl +++ b/modules/tfe_init/templates/azurerm.ubuntu.docker.tfe.sh.tpl @@ -31,6 +31,11 @@ https_proxy="${proxy_ip}:${proxy_port}" no_proxy="${no_proxy}" EOF +/bin/cat </etc/apt/apt.conf +Acquire::http::Proxy "http://${proxy_ip}:${proxy_port}"; +Acquire::https::Proxy "https://${proxy_ip}:${proxy_port}"; +EOF + export http_proxy="${proxy_ip}:${proxy_port}" export https_proxy="${proxy_ip}:${proxy_port}" export no_proxy="${no_proxy}" diff --git a/modules/tfe_init/templates/google.ubuntu.docker.tfe.sh.tpl b/modules/tfe_init/templates/google.ubuntu.docker.tfe.sh.tpl index 3cd42c9..52f730f 100644 --- a/modules/tfe_init/templates/google.ubuntu.docker.tfe.sh.tpl +++ b/modules/tfe_init/templates/google.ubuntu.docker.tfe.sh.tpl @@ -45,6 +45,11 @@ https_proxy="${proxy_ip}:${proxy_port}" no_proxy="${no_proxy}" EOF +/bin/cat </etc/apt/apt.conf +Acquire::http::Proxy "http://${proxy_ip}:${proxy_port}"; +Acquire::https::Proxy "https://${proxy_ip}:${proxy_port}"; +EOF + export http_proxy="${proxy_ip}:${proxy_port}" export https_proxy="${proxy_ip}:${proxy_port}" export no_proxy="${no_proxy}" diff --git a/modules/tfe_init/templates/tfe.sh.tpl b/modules/tfe_init/templates/tfe.sh.tpl index dfae093..5a13f92 100644 --- a/modules/tfe_init/templates/tfe.sh.tpl +++ b/modules/tfe_init/templates/tfe.sh.tpl @@ -48,6 +48,11 @@ https_proxy="${proxy_ip}:${proxy_port}" no_proxy="${no_proxy}" EOF +/bin/cat </etc/apt/apt.conf +Acquire::http::Proxy "http://${proxy_ip}:${proxy_port}"; +Acquire::https::Proxy "https://${proxy_ip}:${proxy_port}"; +EOF + export http_proxy="${proxy_ip}:${proxy_port}" export https_proxy="${proxy_ip}:${proxy_port}" export no_proxy="${no_proxy}"