kubernetes-sigs / image-builder

Tools for building Kubernetes disk images
https://image-builder.sigs.k8s.io/
Apache License 2.0
372 stars 373 forks source link

Add support for building CAPI images behind an HTTP proxy #79

Closed alexbrand closed 4 years ago

alexbrand commented 4 years ago

As a CAPI user, I want to be able to build my own images behind a corporate HTTP proxy.

At first glance, the following changes are needed:

codenrhoden commented 4 years ago

/assign

codenrhoden commented 4 years ago

A quick update on this after a bit of searching...

Packer already supports the 3 main proxy env vars:

So there is nothing to do on the Packer side -- these vars will be honored during any needed ISO downloads.

For Ansible, we'd need to set the environment for the entire playbook. So, we'd need to edit our playbook.yml to define the environment, and then pass them in from Packer via --extra-vars.