New version of salt-formula from Saltstack
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.

24 lines
485B

  1. {%- from "salt/map.jinja" import minion with context %}
  2. {%- if minion.enabled %}
  3. salt_minion_packages:
  4. pkg.latest:
  5. - names: {{ minion.pkgs }}
  6. /etc/salt/minion.d/minion.conf:
  7. file.managed:
  8. - source: salt://salt/files/minion.conf
  9. - user: root
  10. - group: root
  11. - template: jinja
  12. - require:
  13. - pkg: salt_minion_packages
  14. - watch_in:
  15. - service: salt_minion_service
  16. salt_minion_service:
  17. service.running:
  18. - name: {{ minion.service }}
  19. - enable: true
  20. {%- endif %}