Revert "templates/packer: set http(s)_proxy environment variabl…"

This reverts commit 484c82ce55.

The AWS sdk fails to get the instance identity document when the proxy
is configured. The proxy will need to be configured explicitly for the
depsolve job and osbuild (sources) job.
This commit is contained in:
Sanne Raymaekers 2024-04-10 13:39:01 +02:00
parent bde74c218b
commit 18db445745

View file

@ -4,16 +4,5 @@ source /tmp/cloud_init_vars
echo "Starting worker service."
http_proxy=${http_proxy:-}
https_proxy=${https_proxy:-}
if [ -n "$http_proxy" ] || [ -n "$https_proxy" ]; then
sudo mkdir /etc/systemd/system/osbuild-remote-worker@.service.d/
sudo tee -a /etc/systemd/system/osbuild-remote-worker@.service.d/override.conf <<EOF
[Service]
Environment="http_proxy=$http_proxy"
Environment="https_proxy=$https_proxy"
EOF
fi
# Prepare osbuild-composer's remote worker services and sockets.
systemctl enable --now "osbuild-remote-worker@${COMPOSER_HOST}:${COMPOSER_PORT}"