New version of salt-formula from Saltstack
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930
  1. {%- from "salt/map.jinja" import minion with context %}
  2. {%- if minion.enabled %}
  3. include:
  4. - salt.minion.service
  5. salt_minion_grains_dir:
  6. file.directory:
  7. - name: /etc/salt/grains.d
  8. - mode: 700
  9. - makedirs: true
  10. - user: root
  11. - require:
  12. - {{ minion.install_state }}
  13. salt_minion_grains_placeholder:
  14. file.touch:
  15. - name: /etc/salt/grains.d/placeholder
  16. - require:
  17. - file: salt_minion_grains_dir
  18. salt_minion_grains_file:
  19. cmd.run:
  20. - name: cat /etc/salt/grains.d/* > /etc/salt/grains
  21. - require:
  22. - file: salt_minion_grains_dir
  23. - watch_in:
  24. - service: salt_minion_service
  25. {%- endif %}