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

1234567891011121314
  1. {% from "salt/map.jinja" import salt with context %}
  2. include:
  3. - salt.master
  4. salt-api:
  5. pkg.installed:
  6. - name: {{ salt['salt-api'] }}
  7. service.running:
  8. - name: {{ salt.get('api-service', 'salt-api') }}
  9. - require:
  10. - service: {{ salt.get('api-service', 'salt-master') }}
  11. - watch:
  12. - pkg: salt-master