SOC Proxy Setting

The so_proxy value we build during install is now copied to SOC's config.
This commit is contained in:
Corey Ogburn
2024-06-05 14:45:06 -06:00
parent 6d31cd2a41
commit e85c3e5b27
2 changed files with 5 additions and 1 deletions

View File

@@ -1286,6 +1286,7 @@ soc:
maxPacketCount: 5000
htmlDir: html
importUploadDir: /nsm/soc/uploads
proxy: ''
modules:
cases: soc
filedatastore:

View File

@@ -11,6 +11,9 @@
{% set SOCMERGED = salt['pillar.get']('soc', SOCDEFAULTS, merge=true) %}
{% set MANAGER_PROXY = salt['pillar.get']('manager:proxy', '') %}
{% do SOCMERGED.config.server.update({'proxy': MANAGER_PROXY}) %}
{# if SOCMERGED.config.server.modules.cases == httpcase details come from the soc pillar #}
{% if SOCMERGED.config.server.modules.cases != 'soc' %}
{% do SOCMERGED.config.server.modules.elastic.update({'casesEnabled': false}) %}