only allow state to run if it is in top for the node

This commit is contained in:
m0duspwnens
2020-09-02 16:15:52 -04:00
parent 870e042c4c
commit a229ae82ce
39 changed files with 274 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
{% set show_top = salt['state.show_top']() %}
{% set top_states = show_top.values() | join(', ') %}
{% if 'firewall' in top_states %}
# Firewall Magic for the grid
{% from 'firewall/map.jinja' import hostgroups with context %}
{% from 'firewall/map.jinja' import assigned_hostgroups with context %}
@@ -128,3 +133,5 @@ iptables_drop_all_the_things:
- chain: LOGGING
- jump: DROP
- save: True
{% endif %}