Skip to content

Instantly share code, notes, and snippets.

@crunchwill
Last active November 4, 2015 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crunchwill/2ee426ef80e8aa6c86fd to your computer and use it in GitHub Desktop.
Save crunchwill/2ee426ef80e8aa6c86fd to your computer and use it in GitHub Desktop.
/srv/salt/top.sls
base:
'*':
- rsakeys
/srv/salt/rsakeys.sls
rsakeys:
ssh_auth.present:
- user: root
- enc: ssh-rsa
- names:
- KEYISHERE
/etc/salt/master
file_roots:
base:
- /srv/salt
Error message:
server.xxlxl.com.au:
---------
State: - no
Name: states
Function: None
Result: False
Comment: No top file or external nodes data matches found
Summary
------------
Succeeded: 0
Failed: 1
------------
Total: 1
Output of ls -l /srv/salt:
total 8
-rw-r--r-- 1 root root 1226 Sep 3 10:58 rsakeys.sls
-rw-r--r-- 1 root root 27 Sep 3 10:42 top.sls
Output of salt-run -l debug fileserver.dir_list && salt-run -l debug fileserver.update
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] loading log_handlers in ['/var/cache/salt/master/extmods/log_handlers', '/usr/lib/python2.7/dist-packages/salt/log/handlers']
[DEBUG ] Skipping /var/cache/salt/master/extmods/log_handlers, it is not a directory
[DEBUG ] Configuration file path: /etc/salt/master
[DEBUG ] loading runner in ['/var/cache/salt/master/extmods/runners', '/usr/lib/python2.7/dist-packages/salt/runners']
[DEBUG ] Skipping /var/cache/salt/master/extmods/runners, it is not a directory
Function 'fileserver.dir_list' is unavailable
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] loading log_handlers in ['/var/cache/salt/master/extmods/log_handlers', '/usr/lib/python2.7/dist-packages/salt/log/handlers']
[DEBUG ] Skipping /var/cache/salt/master/extmods/log_handlers, it is not a directory
[DEBUG ] Configuration file path: /etc/salt/master
[DEBUG ] loading runner in ['/var/cache/salt/master/extmods/runners', '/usr/lib/python2.7/dist-packages/salt/runners']
[DEBUG ] Skipping /var/cache/salt/master/extmods/runners, it is not a directory
[DEBUG ] Parsed args: []
[DEBUG ] Parsed kwargs: {}
[DEBUG ] loading fileserver in ['/var/cache/salt/master/extmods/fileserver', '/usr/lib/python2.7/dist-packages/salt/fileserver']
[DEBUG ] Skipping /var/cache/salt/master/extmods/fileserver, it is not a directory
[DEBUG ] Updating fileserver cache
[DEBUG ] diff_mtime_map: the maps are the same
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment