/ saltstack

Fight with SaltStack "No Top file or external nodes data matches found"

I'd love to define NodeGroup in master file and use it in top.sls.

But today, when I run salt -N group state.highstate, then I got a error message

      ID: states
Function: no.None
  Result: False
 Comment: No Top file or external nodes data matches found
 Changes:   

But this group definitely exist in master configuration.

Finally I found when you add a NodeGroup, then you have to restart salt-master.

So, I changed my mind, nodegroups should never appeared in sls files.

In master definition just use it for salt in command-line. It's simple and convenient. In sls file, just use Compound matchers