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
+7
View File
@@ -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 %}