i am trying to restart the service as soon as it gets installed ,below is the init.sls file ,but i am getting the below error , anybody help me out on this
agent-install:
pkg.installed:
- name: splunk
- version: {{ splunk.install.version }}
service.running:
- enable: True
- restart: True
- require:
- sls: config
{% endif %}
i am getting this kind of error
ID: agent-install
Function: service.running
Result: False
Comment: The following requisites were not found:
require:
sls: config
Started:
Duration:
Changes: