mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Playbook - Add flag for runtime
This commit is contained in:
10
salt/top.sls
10
salt/top.sls
@@ -3,6 +3,7 @@
|
||||
{%- set WAZUH = salt['pillar.get']('master:wazuh', '0') -%}
|
||||
{%- set GRAFANA = salt['pillar.get']('master:grafana', '0') -%}
|
||||
{%- set THEHIVE = salt['pillar.get']('master:thehive', '0') -%}
|
||||
{%- set PLAYBOOK = salt['pillar.get']('master:playbook', '0') -%}
|
||||
base:
|
||||
'G@role:so-sensor':
|
||||
- ca
|
||||
@@ -55,6 +56,10 @@ base:
|
||||
{%- if THEHIVE != 0 %}
|
||||
- hive
|
||||
{%- endif %}
|
||||
{%- if PLAYBOOK != 0 %}
|
||||
- playbook
|
||||
{%- endif %}
|
||||
|
||||
|
||||
|
||||
'G@role:so-master':
|
||||
@@ -87,7 +92,10 @@ base:
|
||||
{%- if THEHIVE != 0 %}
|
||||
- hive
|
||||
{%- endif %}
|
||||
|
||||
{%- if PLAYBOOK != 0 %}
|
||||
- playbook
|
||||
{%- endif %}
|
||||
|
||||
|
||||
# Storage node logic
|
||||
|
||||
|
||||
@@ -539,6 +539,7 @@ master_pillar() {
|
||||
echo " osquery: $OSQUERY" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
|
||||
echo " wazuh: $WAZUH" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
|
||||
echo " thehive: $THEHIVE" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
|
||||
echo " playbook: 0" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
|
||||
}
|
||||
|
||||
master_static() {
|
||||
|
||||
Reference in New Issue
Block a user