Search code examples
salt-project

"No Top file or external nodes data matches found" with salt


New to salt,and i add first server(wx-1),it works ,but when i add a differnt server, test.ping is ok,but when execute salt 'qing' state.highstate, it fails,the error info is:

No Top file or external nodes data matches found

Here is my top.sls:

base:
  'wx-1':
    - bin.nginx
    - git
    - web
    - mongo
    - redis
  'qing':
    - bin.nginx

qing is a new server and it's config is different to wx-1,don't know if this is ok,thanks for your help:)


Solution

  • You didn't give much information. But here are a few things to check:

    • test if salt qing state.sls bin.nginx works, if not continue reading
    • make sure file_roots:base in master config points to /srv/salt
    • use salt-master/minion --version to check salt versions, make sure they are the same. Because different versions might diff

    Give further info if you tried all the above.