I want to execute the following commands:
1)salt '*' state.sls test (test is the name of the .sls file and its abspath is /srv/salt/text.sls)
the result is
minion-10-211-55-3:
Data failed to compile:
----------
No matching sls found for 'test' in env 'base'
2)salt '*' cp.get_file salt://hello.txt c:/new/hello.txt makedirs=True (the hello.txt exists in /srv/salt)
this command does not return any result, it is certainly failed.
I used to executed the two commands successfully, but somehow i can't do this someday. I don't remember which config i changed.
the file_roots part in master config is this:
file_roots:
base:
- /srv/salt
dev:
- /srv/salt-dev
I have been stuck in this problem for a few days.Because these two command are related to the env 'base', i think it is the problem of file_roots config. I have already checked my master config is right, and i have restarted the salt-master by service salt-master restart many times to make the config work.
Why salt still has the problem? I need to use these two command in my work.
Any help, direction is appreciated.
Thanks.