{%- if salt['pillar.get']('apt-proxy:name') != "None" %} Acquire::http { proxy "http://{{salt['pillar.get']('apt-proxy:name')}}:{{ salt['pillar.get']('apt-proxy:port')}}" } {%- endif %}