mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Change proxy Jinja logic (none and empty string are falsy)
This commit is contained in:
@@ -72,7 +72,7 @@ so-idstools:
|
||||
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-idstools:{{ VERSION }}
|
||||
- hostname: so-idstools
|
||||
- user: socore
|
||||
{% if proxy != '' and proxy is not none %}
|
||||
{% if proxy %}
|
||||
- environment:
|
||||
- http_proxy={{ proxy }}
|
||||
- https_proxy={{ proxy }}
|
||||
|
||||
@@ -14,6 +14,6 @@ distroverpkg=centos-release
|
||||
clean_requirements_on_remove=1
|
||||
{% if (grains['role'] not in ['so-eval','so-managersearch', 'so-manager', 'so-standalone']) and salt['pillar.get']('global:managerupdate', '0') -%}
|
||||
proxy=http://{{ salt['pillar.get']('yum:config:proxy', salt['config.get']('master')) }}:3142
|
||||
{% elif proxy != '' and proxy is not none -%}
|
||||
{% elif proxy -%}
|
||||
proxy={{ proxy }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user