mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Also check for proxy to be empty string
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
{% set proxy = salt['pillar.get']('manager:proxy') -%}
|
||||||
[main]
|
[main]
|
||||||
cachedir=/var/cache/yum/$basearch/$releasever
|
cachedir=/var/cache/yum/$basearch/$releasever
|
||||||
keepcache=0
|
keepcache=0
|
||||||
@@ -11,9 +12,8 @@ installonly_limit={{ salt['pillar.get']('yum:config:installonly_limit', 2) }}
|
|||||||
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
|
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
|
||||||
distroverpkg=centos-release
|
distroverpkg=centos-release
|
||||||
clean_requirements_on_remove=1
|
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') -%}
|
||||||
{% 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
|
proxy=http://{{ salt['pillar.get']('yum:config:proxy', salt['config.get']('master')) }}:3142
|
||||||
{% elif salt['pillar.get']('manager:proxy') is not none %}
|
{% elif proxy != '' and proxy is not none -%}
|
||||||
proxy={{salt['pillar.get']('manager:proxy')}}
|
proxy={{ proxy }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user