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

standalone.sls 614B

12345678910111213141516171819202122
  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. salt-minion:
  3. {% if salt_settings.install_packages %}
  4. pkg.installed:
  5. - name: {{ salt_settings.salt_minion }}
  6. {% endif %}
  7. file.recurse:
  8. - name: {{ salt_settings.config_path }}/minion.d
  9. - template: jinja
  10. - source: salt://salt/files/minion.d
  11. - clean: {{ salt_settings.clean_config_d_dir }}
  12. - context:
  13. standalone: True
  14. service.dead:
  15. - enable: False
  16. - name: {{ salt_settings.minion_service }}
  17. - require:
  18. {% if salt_settings.install_packages %}
  19. - pkg: salt-minion
  20. {% endif %}
  21. - file: salt-minion