I am new to SaltStack and following some tutorials and trying to execute state.apply but getting below error:
# salt "host2" state.apply host2: ---------- ID: states Function: no.None Result: False Comment: No Top file or external nodes data matches found Started: Duration: Changes: Summary for host2 ------------ Succeeded: 0 Failed: 1 ------------ Total states run: 1
I am able to test.ping successfully to host. here is directory structure:
/etc/salt/srv/salt/states
|-top.sls
|-installations
|-init.sls
file root entry in master config
file_roots:
base:
- /srv/salt/states
top.sls ->
base:
'*':
- installations
init.sls->
install_apache:
pkg.installed:
- name: apache2