{"action":"opened","issue":{"url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/40","labels_url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/40/comments","events_url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/40/events","html_url":"https://github.com/hw-cookbooks/chef-server-populator/issues/40","id":90749589,"number":40,"title":"Data bag integration with user cookbook","user":{"login":"Joseph-R","id":7227022,"avatar_url":"https://avatars.githubusercontent.com/u/7227022?v=3","gravatar_id":"","url":"https://api.github.com/users/Joseph-R","html_url":"https://github.com/Joseph-R","followers_url":"https://api.github.com/users/Joseph-R/followers","following_url":"https://api.github.com/users/Joseph-R/following{/other_user}","gists_url":"https://api.github.com/users/Joseph-R/gists{/gist_id}","starred_url":"https://api.github.com/users/Joseph-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joseph-R/subscriptions","organizations_url":"https://api.github.com/users/Joseph-R/orgs","repos_url":"https://api.github.com/users/Joseph-R/repos","events_url":"https://api.github.com/users/Joseph-R/events{/privacy}","received_events_url":"https://api.github.com/users/Joseph-R/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T18:13:01Z","updated_at":"2015-06-24T18:13:01Z","closed_at":null,"body":"Hey guys,\r\n\r\nI'm building a PoC chef server and attempting to deploy the whole thing from code using this cookbook, chef-server, etc.   \r\n\r\nIt's not clear to me if there is an intended integration or interoperability between the data bags used in this cookbook for user/client registration (`node[:chef_server_populator][:databag]) and the user data bags from Chef's [users](https://github.com/opscode-cookbooks/users)?\r\n\r\nI'd prefer not to create another data bag with duplicate users and have to maintain code in two places if I can help it.  Is there any integration available/intended with this or other chef user management tools, at this time?  \r\n\r\nI'm assuming not.  But it would be really handy if I could use the same data bag for each and have this cookbook only register clients, keys, etc, if a certain value existed in each user's file.  \r\n\r\nExample user entry in the format used by the Chef-maintained user cookbook:\r\n```\r\n{\r\n  \"id\": \"user_id\",\r\n  \"ssh_keys\": [\r\n    \"key_value\"\r\n    ],\r\n  \"groups\": [ \"developers\" ],\r\n  \"uid\": 607,\r\n  \"shell\": \"\\/bin\\/bash\",\r\n  \"comment\": \"comment_valuel\"\r\n}\r\n```\r\n\r\nWhich I'm thinking could become:\r\n```\r\n{\r\n    \"id\": \"user_id\",\r\n    \"full_name\": \"User Name\",\r\n    \"ssh_keys\": [\r\n        \"key_value\"\r\n    ],\r\n    \"groups\": [\r\n        \"developers\"\r\n    ],\r\n    \"uid\": 607,\r\n    \"email\": \"name@domain.tld\",\r\n    \"shell\": \"/bin/bash\",\r\n    \"comment\": \"comment_value\",\r\n    \"chef_server\": {\r\n        \"client_key\": \"public key contents\",\r\n        \"type\": [\r\n            \"user\"\r\n        ],\r\n        \"orgs\": {\r\n            \"organization\": {\r\n                \"enabled\": true,\r\n                \"admin\": true\r\n            }\r\n        }\r\n    }\r\n}\r\n```"}}