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:
parent
bde74c218b
commit
18db445745
1 changed files with 0 additions and 11 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue