init.sls 490 B

12345678910111213141516171819202122232425
  1. #
  2. # Salt minion config
  3. #
  4. salt-minion:
  5. pkg.installed:
  6. - pkgs:
  7. - salt-minion
  8. {% if grains.oscodename == "buster" %}
  9. - python3-tornado
  10. {% endif %}
  11. service.running:
  12. - enable: true
  13. # - reload: true
  14. /etc/salt/minion:
  15. file.managed:
  16. - source: salt://salt-minion/minion_conf.tmpl
  17. - template: jinja
  18. - context:
  19. salt_config: {{ salt['pillar.get']('globals:salt') }}
  20. - require:
  21. - pkg: salt-minion
  22. # - watch_in:
  23. # - service: salt-minion