{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/users/issues/97","labels_url":"https://api.github.com/repos/chef-cookbooks/users/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/users/issues/97/comments","events_url":"https://api.github.com/repos/chef-cookbooks/users/issues/97/events","html_url":"https://github.com/chef-cookbooks/users/issues/97","id":73662310,"number":97,"title":"Creating a node list","user":{"login":"erutherford","id":1719563,"avatar_url":"https://avatars.githubusercontent.com/u/1719563?v=3","gravatar_id":"","url":"https://api.github.com/users/erutherford","html_url":"https://github.com/erutherford","followers_url":"https://api.github.com/users/erutherford/followers","following_url":"https://api.github.com/users/erutherford/following{/other_user}","gists_url":"https://api.github.com/users/erutherford/gists{/gist_id}","starred_url":"https://api.github.com/users/erutherford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erutherford/subscriptions","organizations_url":"https://api.github.com/users/erutherford/orgs","repos_url":"https://api.github.com/users/erutherford/repos","events_url":"https://api.github.com/users/erutherford/events{/privacy}","received_events_url":"https://api.github.com/users/erutherford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T15:51:49Z","updated_at":"2015-12-24T06:19:40Z","closed_at":null,"body":"I'd like to extend the provider on this to support an array of nodes that is evaluated when creating users.  This would allow me to limit creation of the user accounts to the nodes that are identified in the data bag entry for that user. \r\n\r\nMy motivation here is that we have two main groups of nodes, client development and internal development/production.  Some users (ops) should have accounts on every single node, while others (dev) should only have user accounts on a specific node or subset of nodes.  I'm still extremely new to chef so I could be completely off base here, but this idea seemed logical to me.  My proposed change would be to evaluate an array of nodes in the users databag entry to determine whether or not the user account should be created or deleted on a given node.\r\n\r\nI understand that I could create recipes following the sysadmin model provided and map specific groups to hosts, but my thought here is that instead of managing a large number of groups, we could treat the groups more like roles and map users with those roles to specific nodes.  I believe that this would also make user access more auditable, because you'd be to able easily determine which hosts someone was associated with.\r\n\r\nBefore I start working on this, is there a reason this shouldn't be done or is there a better way to do this?"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/users/issues/comments/167050604","html_url":"https://github.com/chef-cookbooks/users/issues/97#issuecomment-167050604","issue_url":"https://api.github.com/repos/chef-cookbooks/users/issues/97","id":167050604,"user":{"login":"bacrossland","id":441016,"avatar_url":"https://avatars.githubusercontent.com/u/441016?v=3","gravatar_id":"","url":"https://api.github.com/users/bacrossland","html_url":"https://github.com/bacrossland","followers_url":"https://api.github.com/users/bacrossland/followers","following_url":"https://api.github.com/users/bacrossland/following{/other_user}","gists_url":"https://api.github.com/users/bacrossland/gists{/gist_id}","starred_url":"https://api.github.com/users/bacrossland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacrossland/subscriptions","organizations_url":"https://api.github.com/users/bacrossland/orgs","repos_url":"https://api.github.com/users/bacrossland/repos","events_url":"https://api.github.com/users/bacrossland/events{/privacy}","received_events_url":"https://api.github.com/users/bacrossland/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T06:19:40Z","updated_at":"2015-12-24T06:19:40Z","body":":+1: "}}