mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
remove logic from fleet state to only run if in top
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
{% set show_top = salt['state.show_top']() %}
|
||||
{% set top_states = show_top.values() | join(', ') %}
|
||||
|
||||
{% if 'fleet' in top_states %}
|
||||
|
||||
{%- set MYSQLPASS = salt['pillar.get']('secrets:mysql', None) -%}
|
||||
{%- set FLEETPASS = salt['pillar.get']('secrets:fleet', None) -%}
|
||||
{%- set FLEETJWT = salt['pillar.get']('secrets:fleet_jwt', None) -%}
|
||||
@@ -138,11 +133,3 @@ so-fleet:
|
||||
- /opt/so/conf/fleet/etc
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
fleet_state_not_allowed:
|
||||
test.fail_without_changes:
|
||||
- name: fleet_state_not_allowed
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user