Hi,
I'm trying to setup a simple masterless configuration.
I can't make salt find a simple file and I've no idea why.
* Version:
# salt-call --version
salt-call 0.17.4
* My top.sls file:
# cat /srv/salt/top.sls
/etc/motd:
file.managed:
- source: salt://motd-common
* The source file actually exists:
# ls -l /srv/salt/motd-common
-rw-r--r-- 1 root root 10 Jan 2 11:57 /srv/salt/motd-common
* the config file is pretty straightforward:
# grep ^[^#] /etc/salt/minion
file_client: local
file_roots:
base:
- /srv/salt/
The behaviour is the same when the config file is empty.
* Here the output of the salt-call command:
# salt-call state.highstate --local
[WARNING ] Although 'lspci' was found in path, the current user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'lspci' was found in path, the current user cannot execute it. Grains output might not be accurate.
[INFO ] Loading fresh modules for state activity
local:
----------
State: - no
Name: states
Function: None
Result: False
Comment: No Top file or external nodes data matches found
Changes:
Summary
------------
Succeeded: 0
Failed: 1
------------
Total: 1
As far as I understand, if no file_client or file_roots is defined and salt-call is executed with the --local option, then salt-call is supposed to search for files in the /srv/salt directory. Am I right?
What am I doing wrong here?
thanks.