Add maxfiles to the steno config

This commit is contained in:
Mike Reeves
2021-09-03 10:47:00 -04:00
committed by GitHub
parent a14854d56d
commit 9fb28709d5

View File

@@ -1,11 +1,13 @@
{%- set interface = salt['pillar.get']('sensor:interface', 'bond0') %} {%- set interface = salt['pillar.get']('sensor:interface', 'bond0') %}
{%- set diskfreepercentage = salt['pillar.get']('steno:diskfreepercentage', 10) %} {%- set diskfreepercentage = salt['pillar.get']('steno:diskfreepercentage', 10) %}
{%- set maxfiles = salt['pillar.get']('steno:maxfiles', 30000) %}
{ {
"Threads": [ "Threads": [
{ "PacketsDirectory": "/nsm/pcap" { "PacketsDirectory": "/nsm/pcap"
, "IndexDirectory": "/nsm/pcapindex" , "IndexDirectory": "/nsm/pcapindex"
, "MaxDirectoryFiles": 30000 , "MaxDirectoryFiles": {{ maxfiles }}
, "DiskFreePercentage": {{ diskfreepercentage }} , "DiskFreePercentage": {{ diskfreepercentage }}
} }
] ]
@@ -15,4 +17,4 @@
, "Host": "127.0.0.1" , "Host": "127.0.0.1"
, "Flags": ["-v", "--uid=stenographer", "--gid=stenographer"{{ BPF_COMPILED }}] , "Flags": ["-v", "--uid=stenographer", "--gid=stenographer"{{ BPF_COMPILED }}]
, "CertPath": "/etc/stenographer/certs" , "CertPath": "/etc/stenographer/certs"
} }