2
0
salt-formula/salt/files/master.d/reactor.conf
2017-05-22 19:34:31 -03:00

20 lines
652 B
Plaintext

#
# This file is managed by Salt! Do not edit by hand!
#
{# The parameter reactor is kept for backward compatibility -#}
{%- set reactors = salt['pillar.get']('salt:reactor', []) -%}
{%- set reactors = salt['pillar.get']('salt:reactors', default=reactors, merge=True) -%}
{%- set reactors = salt['pillar.get']('salt:master:reactors', default=reactors, merge=True) -%}
{%- if reactors %}
reactor:
{%- for reactor in reactors %}
{%- for event_tag, reactor_files in reactor.items() %}
- '{{ event_tag }}':
{%- for reactor_file in reactor_files %}
- {{ reactor_file }}
{%- endfor %}
{%- endfor %}
{% endfor -%}
{%- endif -%}