New Saltstack Salt formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

14 行
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 %}