mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-30 16:38:07 +02:00
only allow state to run if it is in top for the node
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
{% set show_top = salt['state.show_top']() %}
|
||||
{% set top_states = show_top.values() | join(', ') %}
|
||||
|
||||
{% if 'motd' in top_states %}
|
||||
|
||||
so_motd:
|
||||
file.managed:
|
||||
- name: /etc/motd
|
||||
- source: salt://motd/files/so_motd.jinja
|
||||
- template: jinja
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user