general/other COUDINIT image, firstboot, and HTTP proxying

I'm setting up a short script that can create a FreeBSD guest instance for running poudriere without any user intervention. The sort of thing I can tell someone, "clone this repo, run this script" and it just sets itself up and starts doing work. Right now I have it grabbing the latest CLOUDINIT image and injecting the initial configuration via nuageinit.

For testing I'd really like to have the guest use a local Squid cache when grabbing things like packages, the ports tree, etc. What I can't figure out is how to set $HTTP_PROXY before the firstboot_pkg_upgrade script runs. Anybody know if this can be done?

I could set up Squid as a transparent poxy, but that's a different rabbit-hole...
 
Back
Top