Getting through a Saltstack tutorial and ran into a problem how to install packages on a linux host if it's behind a proxy. For example, I have a file nettools.sls:
install_network_packages:
pkg.installed:
- pkgs:
- rsync
- lftp
- curl
How can I pass env variables like http_proxy
so to install packages?
Thank you.
This is how it worked for me:
proxy:
environ.setenv:
- name: Proxy Settings
- value:
http_proxy: http://10.20.80.50:3128
https_proxy: https://10.20.80.50:3128
install_network_packages:
pkg.installed:
- pkgs:
- rsync
- lftp
- curl