New version of salt-formula from Saltstack
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

30 lines
616B

  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 %}