Dynamically set sensor checkin interval; allow overrides if var is preset

This commit is contained in:
Jason Ertel
2020-07-15 13:22:11 -04:00
parent 80e081e828
commit 0a976861f3
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
{%- set MANAGER = salt['grains.get']('master') -%}
{%- set SENSORONIKEY = salt['pillar.get']('static:sensoronikey', '') -%}
{%- set CHECKININTERVALMS = salt['pillar.get']('pcap:sensor_checkin_interval_ms') -%}
{
"logFilename": "/opt/sensoroni/logs/sensoroni.log",
"logLevel":"debug",
"agent": {
"pollIntervalMs": 10000,
"pollIntervalMs": {{ CHECKININTERVALMS }},
"serverUrl": "https://{{ MANAGER }}/sensoroniagents",
"verifyCert": false,
"modules": {