Add optional bare-mode boolean flag to Supervisor's node configuration

When omitted, the node inherits the Supervisor's bare-mode
status. When true/false, the new Zeek node will enable/disable bare
mode, respectively. It continues to load any scripts passed at the
command line and in the additional scripts list already provided in
the node configuration.

Includes testcase.
This commit is contained in:
Christian Kreibich 2021-07-07 15:17:39 -07:00
parent efaa9ec3be
commit 7bee79b400
7 changed files with 108 additions and 0 deletions

View file

@ -186,6 +186,11 @@ public:
* A cpu/core number to which the node will try to pin itself.
*/
std::optional<int> cpu_affinity;
/**
* Whether to start the node in bare mode. When not present, the
* node inherits the bare-mode status of the supervisor.
*/
std::optional<bool> bare_mode;
/**
* Additional script filename/paths that the node should load.
*/