New Saltstack Salt formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
458B

  1. {% from "salt/map.jinja" import master with context %}
  2. engines_dirs:
  3. {%- for environment_name, environment in master.get('environment', {}).iteritems() %}
  4. - /srv/salt/env/{{ environment_name }}/_engines
  5. {%- endfor %}
  6. engines:
  7. {%- for engine_name, engine in master.engine.items() %}
  8. {%- set name = engine.get('engine', engine_name) %}
  9. {%- if engine.engine is defined %}{%- do engine.pop('engine') %}{% endif %}
  10. - {{ name }}: {{ engine|yaml }}
  11. {%- endfor %}