I've been attempting to privision a Ubuntu VM using salt cloud in and environment that accesses the Internet via a proxy. I see that when provisioning the server the minion installation hangs because the machine can't access the internet:
* INFO: Installing minion
* INFO: Found function install_ubuntu_stable_deps
* INFO: Found function config_salt
* INFO: Found function install_ubuntu_stable
* INFO: Found function install_ubuntu_restart_daemons
* INFO: Found function daemons_running
* INFO: Found function install_ubuntu_check_services
* INFO: Running install_ubuntu_stable_deps()
Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::19). - connect (101: Network is unreachable) [IP: 2001:67c:1562::19 80]
I'm wondering is there a method to pass a proxy to the VM via salt so that the provisioning can complete? I have tried using preflight_cmds to echo the proxy address to /etc/apt/apt.conf but I see a permission denied error. Alternatively, if there is a method to allow me to gain root permissions so that I can add the proxy information via preflight_cmds or a file push that would be great.