0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-27 22:38:10 +01:00

Support profiles within engine.conf to be able to configure sqs_events, https://docs.saltstack.com/en/latest/ref/engines/all/salt.engines.sqs_events.html

This commit is contained in:
Stefan Reimer 2018-01-29 12:28:48 -08:00
parent b15ce1c73d
commit 334d5de72b

View File

@ -3,6 +3,11 @@
#
{%- set engines = salt['pillar.get']('salt:engines', {}) -%}
{%- set engines = salt['pillar.get']('salt:master:engines', default=engines, merge=True) -%}
{%- set engines_profiles = salt['pillar.get']('salt:engines_profiles', {}) -%}
{%- set engines_profiles = salt['pillar.get']('salt:master:engines_profiles', default=engines_profiles, merge=True) -%}
{%- if engines_profiles %}
{{ engines_profiles | yaml(False) }}
{%- endif -%}
{%- if engines %}
engines:
{{ engines | yaml(False) | indent(2) }}