Saltstack Official 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.

23 satır
615B

  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: False
  14. service.running:
  15. - enable: True
  16. - name: {{ salt_settings.minion_service }}
  17. - watch:
  18. {% if salt_settings.install_packages %}
  19. - pkg: salt-minion
  20. {% endif %}
  21. - file: salt-minion