From c1e4b9c32104c19faa9cccfb35ef6420287b2581 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Tue, 11 May 2021 15:40:46 +0200 Subject: [PATCH] missing part in the previous commit --- templates/storage/cloud-init.cfg | 34 +++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/templates/storage/cloud-init.cfg b/templates/storage/cloud-init.cfg index 6a72590..f798f83 100644 --- a/templates/storage/cloud-init.cfg +++ b/templates/storage/cloud-init.cfg @@ -47,22 +47,24 @@ packages: - firewalld - nfs-utils -bootcmd: -- | - cloud-init-per once env sh -c "mkdir -p /etc/systemd/system/cloud-config.service.d && - mkdir -p /etc/systemd/system/cloud-final.service.d && { cat > /etc/cloud/env <<-EOF - http_proxy=http://192.168.48.2:3128 - https_proxy=http://192.168.48.2:3128 - EOF - } && { cat > /etc/systemd/system/cloud-config.service.d/override.conf <<-EOF - [Service] - EnvironmentFile=/etc/cloud/env - EOF - } && { cat > /etc/systemd/system/cloud-final.service.d/override.conf <<-EOF - [Service] - EnvironmentFile=/etc/cloud/env - EOF - } && systemctl daemon-reload" +# Uncomment the following lines for HTTP proxy support +# +# bootcmd: +# - | +# cloud-init-per once env sh -c "mkdir -p /etc/systemd/system/cloud-config.service.d && +# mkdir -p /etc/systemd/system/cloud-final.service.d && { cat > /etc/cloud/env <<-EOF +# http_proxy=http://admin.itix.lab:3128 +# https_proxy=http://admin.itix.lab:3128 +# EOF +# } && { cat > /etc/systemd/system/cloud-config.service.d/override.conf <<-EOF +# [Service] +# EnvironmentFile=/etc/cloud/env +# EOF +# } && { cat > /etc/systemd/system/cloud-final.service.d/override.conf <<-EOF +# [Service] +# EnvironmentFile=/etc/cloud/env +# EOF +# } && systemctl daemon-reload" runcmd: # Enable KVM virsh console access