{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25292","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25292/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25292/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25292/events","html_url":"https://github.com/saltstack/salt/issues/25292","id":94054940,"number":25292,"title":"Nodegroup matching in pillars?","user":{"login":"lichtamberg","id":10075,"avatar_url":"https://avatars.githubusercontent.com/u/10075?v=3","gravatar_id":"","url":"https://api.github.com/users/lichtamberg","html_url":"https://github.com/lichtamberg","followers_url":"https://api.github.com/users/lichtamberg/followers","following_url":"https://api.github.com/users/lichtamberg/following{/other_user}","gists_url":"https://api.github.com/users/lichtamberg/gists{/gist_id}","starred_url":"https://api.github.com/users/lichtamberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lichtamberg/subscriptions","organizations_url":"https://api.github.com/users/lichtamberg/orgs","repos_url":"https://api.github.com/users/lichtamberg/repos","events_url":"https://api.github.com/users/lichtamberg/events{/privacy}","received_events_url":"https://api.github.com/users/lichtamberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-09T13:54:57Z","updated_at":"2015-07-09T19:21:18Z","closed_at":null,"body":"I tried now to move all specified grain.ids from the pillarfile to my master.conf...\r\n\r\nIn the state-files it works really great.. but not so in the pillars...\r\nThe states are filtered quite fine, but the pillars are just empty for my specified nodegroups..\r\n\r\nIs it not possible there or do I have a mistake?\r\n\r\n```yml\r\n# top.sls - states\r\n\r\nbase:\r\n  '*':\r\n    - ntp\r\n    - openssl\r\n    - postfix\r\n    - postfix.config\r\n\r\n  mytest2:\r\n    - match: nodegroup\r\n    - couchdb\r\n    - unicorn\r\n```\r\n```yml\r\n# master.conf\r\n\r\nnodegroups:\r\n  mytest1:      L@myserver1,myserver2\r\n  mytest2: L@myserver2,myserver3\r\n\r\n```\r\n```yml\r\n# top.sls - pillars\r\n\r\nbase:\r\n  '*':\r\n    - base\r\n    - users\r\n    - sudoers\r\n    - openssh\r\n\r\n  mytest2:\r\n    - match: nodegroup\r\n    - nginx.certs\r\n```\r\n\r\nWhen I try to match them via 'N@...' i get just an error message:\r\n\r\n```yml\r\n# top.sls - pillars\r\n\r\nbase:\r\n  '*':\r\n    - base\r\n    - users\r\n    - sudoers\r\n    - openssh\r\n\r\n  'N@mytest2':\r\n    - nginx.certs\r\n```\r\n\r\n```shell\r\n[ERROR   ] Detected nodegroup expansion failure of \"N@mytest2\"\r\n[ERROR   ] Detected nodegroup expansion failure of \"N@mytest2\"\r\n```\r\n\r\n```shell\r\n# salt-ssh --versions-report\r\nSalt Version:\r\n           Salt: 2015.5.0-1720-gd41068f\r\n\r\nDependency Versions:\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.22\r\n           Mako: 1.0.1\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.6.0\r\n         Python: 2.7.9 (default, Jan  7 2015, 11:50:42)\r\n           RAET: Not Installed\r\n        Tornado: 4.1\r\n            ZMQ: 4.0.5\r\n          ioflo: 1.2.1\r\n        libnacl: Not Installed\r\n   msgpack-pure: 0.1.3\r\n msgpack-python: 0.4.6\r\n       pycrypto: 2.6.1\r\n\r\nSystem Versions:\r\n           dist:\r\n        machine: x86_64\r\n        release: 13.4.0\r\n         system: 10.9.5 -- x86_64\r\n```\r\n\r\nAny hints?"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/120115977","html_url":"https://github.com/saltstack/salt/issues/25292#issuecomment-120115977","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25292","id":120115977,"user":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T19:21:18Z","updated_at":"2015-07-09T19:21:18Z","body":"Hrm, I'm not sure what's going on here, but everything looks to be in order. We'll investigate this."}}