Add dep support for analyzers

This commit is contained in:
Jason Ertel
2022-03-31 13:59:35 -04:00
parent 1aba4da2bb
commit 48fbc2290f
2 changed files with 25 additions and 0 deletions

View File

@@ -13,6 +13,12 @@
{%- set STENODEFAULT = False %}
{%- endif %}
{%- set STENOENABLED = salt['pillar.get']('steno:enabled', STENODEFAULT) %}
{%- if ROLE in ['eval', 'standalone', 'import', 'manager', 'managersearch'] %}
{%- set ANALYZEDEFAULT = True %}
{%- else %}
{%- set ANALYZEDEFAULT = False %}
{%- endif %}
{%- set ANALYZEENABLED = salt['pillar.get']('sensoroni:analyze_enabled', ANALYZEDEFAULT) %}
{
"logFilename": "/opt/sensoroni/logs/sensoroni.log",
"logLevel":"info",
@@ -26,10 +32,12 @@
"serverUrl": "https://{{ URLBASE }}/sensoroniagents",
"verifyCert": false,
"modules": {
{%- if ANALYZEENABLED %}
"analyze": {
"timeoutMs": {{ ANALYZE_TIMEOUT_MS }},
"parallelLimit": {{ ANALYZE_PARALLEL_LIMIT }}
},
{%- endif %}
"importer": {},
"statickeyauth": {
"apiKey": "{{ SENSORONIKEY }}"