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.
|
- {% from "salt/map.jinja" import salt_settings with context %}
-
- {% if salt_settings.install_packages %}
- api_installed:
- module_and_function: pkg.version
- args:
- - {{ salt_settings.salt_api }}
- {%- if salt_settings.version is defined %}
- assertion: assertEqual
- expected-return: {{ salt_settings.version }}
- {% else %}
- assertion: assertNotEmpty
- {%- endif %}
- {% endif %}
-
- api_running:
- module_and_function: service.status
- args:
- - {{ salt_settings.api_service }}
- assertion: assertTrue
-
- api_enabled:
- module_and_function: service.enabled
- args:
- - {{ salt_settings.api_service }}
- assertion: assertTrue
|