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

27 lines
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