mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-25 14:07:49 +02:00
only allow state to run if it is in top for the node
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
{% set show_top = salt['state.show_top']() %}
|
||||
{% set top_states = show_top.values() | join(', ') %}
|
||||
|
||||
{% if 'ssl' in top_states %}
|
||||
|
||||
{% set manager = salt['grains.get']('master') %}
|
||||
{% set managerip = salt['pillar.get']('global:managerip', '') %}
|
||||
{% set HOSTNAME = salt['grains.get']('host') %}
|
||||
@@ -570,3 +575,5 @@ elastickeyperms:
|
||||
- group: 930
|
||||
|
||||
{%- endif %}
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user