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:

    - pkgs:
      - rsync
      - lftp
      - curl

How can I pass env variables like http_proxy so to install packages? Thank you.


1 Answer 1


Not sure you can for a pkg.installed state. What you can do is configure your package manager (APT if Debian/Ubuntu, RPM/YUM if Centos/RedHat...) to know that it must use a HTTP proxy.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .