diff --git a/pillar.example b/pillar.example index 610ffb0..48f9956 100644 --- a/pillar.example +++ b/pillar.example @@ -42,6 +42,9 @@ salt: - IAD - SYD - HKG + reactor: + - 'deploy': + - /srv/salt/reactors/deploy.sls salt_cloud_certs: aws: diff --git a/salt/files/master.d/reactor.conf b/salt/files/master.d/reactor.conf new file mode 100644 index 0000000..e4358a6 --- /dev/null +++ b/salt/files/master.d/reactor.conf @@ -0,0 +1,15 @@ +# +# This file is managed by Salt! Do not edit by hand! +# +{%- set reactors = salt['pillar.get']('salt:reactor') -%} +{%- 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 -%}