From 2852e7b897c6a60f95d9c288bc1c9ef478c7ff3b Mon Sep 17 00:00:00 2001 From: Tim O'Guin Date: Fri, 24 Oct 2014 14:48:56 -0500 Subject: [PATCH] add templated file for reactor configuration and update pillar.example. --- pillar.example | 3 +++ salt/files/master.d/reactor.conf | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 salt/files/master.d/reactor.conf 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 -%}