mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-26 14:37:49 +02:00
only allow state to run if it is in top for the node
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% set show_top = salt['state.show_top']() %}
|
||||
{% set top_states = show_top.values() | join(', ') %}
|
||||
|
||||
{% if 'nodered' in top_states %}
|
||||
|
||||
{% set IMAGEREPO = salt['pillar.get']('global:imagerepo') %}
|
||||
|
||||
@@ -75,3 +79,4 @@ so-nodered-flows:
|
||||
- name: /usr/sbin/so-nodered-load-flows
|
||||
- cwd: /
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user