export http_proxy=http://squid.internal:3128
export https_proxy=http://squid.internal:3128
# no proxy localhost, my internal ip, and my lxd range
export no_proxy=`echo localhost 10.245.71.116 10.44.139.{1..255} | sed 's/ /,/g'`
# - dont apt update/upgrade our instances (cloud images are recent enough)
# - let the juju2 model know about the above proxy settings
juju add-model foo --config enable-os-refresh-update=false \
--config enable-os-upgrade=false --config http-proxy=$http_proxy \
--config https-proxy=$https_proxy --config no-proxy=$no_proxy