Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
727B

  1. {%- for name,value in variables.items() if not name.lower().endswith('_proxy') %}
  2. {%- if value is sequence and value is not string %}
  3. {{ name }}="{{ value|join(':') }}"
  4. {%- else %}
  5. {{ name }}="{{ value }}"
  6. {%- endif %}
  7. {%- endfor %}
  8. {%- if ftp_proxy and ftp_proxy.lower() != 'none' %}
  9. ftp_proxy="{{ ftp_proxy }}"
  10. FTP_PROXY="{{ ftp_proxy }}"
  11. {%- endif %}
  12. {%- if http_proxy and http_proxy.lower() != 'none' %}
  13. http_proxy="{{ http_proxy }}"
  14. HTTP_PROXY="{{ http_proxy }}"
  15. {%- endif %}
  16. {%- if https_proxy and https_proxy.lower() != 'none' %}
  17. https_proxy="{{ https_proxy }}"
  18. HTTPS_PROXY="{{ https_proxy }}"
  19. {%- endif %}
  20. {%- if no_proxy %}
  21. no_proxy="{{ no_proxy|join(',') }}"
  22. NO_PROXY="{{ no_proxy|join(',') }}"
  23. {%- endif %}