From 00457a3022b7d993b81b3ba9e8a685977498292a Mon Sep 17 00:00:00 2001 From: Tauhid Date: Thu, 5 Sep 2024 15:44:02 +0530 Subject: [PATCH 1/2] adding apt proxy details --- modules/tfe_init/templates/aws.ubuntu.docker.tfe.sh.tpl | 5 +++++ modules/tfe_init/templates/azurerm.ubuntu.docker.tfe.sh.tpl | 5 +++++ modules/tfe_init/templates/google.ubuntu.docker.tfe.sh.tpl | 5 +++++ 3 files changed, 15 insertions(+) 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}" From 3bfdb31162ba985199c5c4b9f4ae2956b3576e3e Mon Sep 17 00:00:00 2001 From: Tauhid Date: Fri, 6 Sep 2024 11:59:48 +0530 Subject: [PATCH 2/2] Adding apt proxy to tfe file --- modules/tfe_init/templates/tfe.sh.tpl | 5 +++++ 1 file changed, 5 insertions(+) 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}"