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

27 rindas
626B

  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. {% if salt_settings.install_packages %}
  3. api_installed:
  4. module_and_function: pkg.version
  5. args:
  6. - {{ salt_settings.salt_api }}
  7. {%- if salt_settings.version is defined %}
  8. assertion: assertEqual
  9. expected-return: {{ salt_settings.version }}
  10. {% else %}
  11. assertion: assertNotEmpty
  12. {%- endif %}
  13. {% endif %}
  14. api_running:
  15. module_and_function: service.status
  16. args:
  17. - {{ salt_settings.api_service }}
  18. assertion: assertTrue
  19. api_enabled:
  20. module_and_function: service.enabled
  21. args:
  22. - {{ salt_settings.api_service }}
  23. assertion: assertTrue