paulbsd-salt/states/apt/10proxy.j2
2020-07-10 00:58:55 +02:00

3 lines
185 B
Django/Jinja

{%- 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 %}