Browse Source

missing part in the previous commit

main
Nicolas Massé 5 years ago
parent
commit
c1e4b9c321
  1. 34
      templates/storage/cloud-init.cfg

34
templates/storage/cloud-init.cfg

@ -47,22 +47,24 @@ packages:
- firewalld - firewalld
- nfs-utils - nfs-utils
bootcmd: # Uncomment the following lines for HTTP proxy support
- | #
cloud-init-per once env sh -c "mkdir -p /etc/systemd/system/cloud-config.service.d && # bootcmd:
mkdir -p /etc/systemd/system/cloud-final.service.d && { cat > /etc/cloud/env <<-EOF # - |
http_proxy=http://192.168.48.2:3128 # cloud-init-per once env sh -c "mkdir -p /etc/systemd/system/cloud-config.service.d &&
https_proxy=http://192.168.48.2:3128 # mkdir -p /etc/systemd/system/cloud-final.service.d && { cat > /etc/cloud/env <<-EOF
EOF # http_proxy=http://admin.itix.lab:3128
} && { cat > /etc/systemd/system/cloud-config.service.d/override.conf <<-EOF # https_proxy=http://admin.itix.lab:3128
[Service] # EOF
EnvironmentFile=/etc/cloud/env # } && { cat > /etc/systemd/system/cloud-config.service.d/override.conf <<-EOF
EOF # [Service]
} && { cat > /etc/systemd/system/cloud-final.service.d/override.conf <<-EOF # EnvironmentFile=/etc/cloud/env
[Service] # EOF
EnvironmentFile=/etc/cloud/env # } && { cat > /etc/systemd/system/cloud-final.service.d/override.conf <<-EOF
EOF # [Service]
} && systemctl daemon-reload" # EnvironmentFile=/etc/cloud/env
# EOF
# } && systemctl daemon-reload"
runcmd: runcmd:
# Enable KVM virsh console access # Enable KVM virsh console access

Loading…
Cancel
Save