Suricata Module - Fix MTU for EVAL

This commit is contained in:
Mike Reeves
2018-11-30 10:57:15 -05:00
parent 02f9995cf5
commit 6da00a2626
3 changed files with 10 additions and 0 deletions

View File

@@ -1,7 +1,11 @@
%YAML 1.1 %YAML 1.1
--- ---
{%- set interface = salt['pillar.get']('sensor:interface', 'bond0') %} {%- set interface = salt['pillar.get']('sensor:interface', 'bond0') %}
{%- if grains['role'] == 'so-eval' %}
{%- set MTU = "1500"}
{%- else %}
{%- set MTU = salt['pillar.get']('sensor:mtu', '1500') %} {%- set MTU = salt['pillar.get']('sensor:mtu', '1500') %}
{%- endif %}
{%- if salt['pillar.get']('sensor:homenet') %} {%- if salt['pillar.get']('sensor:homenet') %}
{%- set homenet = salt['pillar.get']('sensor:hnsensor', '') %} {%- set homenet = salt['pillar.get']('sensor:hnsensor', '') %}
{%- else %} {%- else %}

View File

@@ -1,6 +1,11 @@
%YAML 1.1 %YAML 1.1
--- ---
{%- set interface = salt['pillar.get']('sensor:interface', 'bond0') %} {%- set interface = salt['pillar.get']('sensor:interface', 'bond0') %}
{%- if grains['role'] == 'so-eval' %}
{%- set MTU = "1500"}
{%- else %}
{%- set MTU = salt['pillar.get']('sensor:mtu', '1500') %}
{%- endif %}
{%- if salt['pillar.get']('sensor:homenet') %} {%- if salt['pillar.get']('sensor:homenet') %}
{%- set homenet = salt['pillar.get']('sensor:hnsensor', '') %} {%- set homenet = salt['pillar.get']('sensor:hnsensor', '') %}
{%- else %} {%- else %}

View File

@@ -471,6 +471,7 @@ master_pillar() {
echo " ls_pipeline_batch_size: 125" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " ls_pipeline_batch_size: 125" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
echo " ls_input_threads: 1" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " ls_input_threads: 1" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
echo " ls_batch_count: 125" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " ls_batch_count: 125" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
echo " mtu: 1500" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
else else
echo " freq: 0" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " freq: 0" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
echo " domainstats: 0" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " domainstats: 0" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls