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

18 行
469B

  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. {% if salt_settings.install_packages %}
  3. ensure salt-ssh is installed:
  4. pkg.installed:
  5. - name: {{ salt_settings.salt_ssh }}
  6. {% endif %}
  7. ensure roster config:
  8. file.managed:
  9. - name: {{ salt_settings.config_path }}/roster
  10. - source: salt://salt/files/roster.jinja
  11. - template: jinja
  12. - require:
  13. {% if salt_settings.install_packages %}
  14. - pkg: ensure salt-ssh is installed
  15. {% endif %}