{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/comments/49572392","id":49572392,"diff_hunk":"@@ -18,6 +41,12 @@ def initialize(*args)\n     defaultto { @resource[:name] }\n   end\n \n+  #represents a plaintext password (for mongodb <= 2.4)\n+  #only a parameter, since there's no way to compare it with the current value\n+  newparam(:password_plain) do","path":"lib/puppet/type/mongodb_user.rb","position":39,"original_position":39,"commit_id":"76ca5755b2f84ca596f7e156c273a0f22570aef3","original_commit_id":"76ca5755b2f84ca596f7e156c273a0f22570aef3","user":{"login":"valerioj","id":763797,"avatar_url":"https://avatars.githubusercontent.com/u/763797?v=3","gravatar_id":"","url":"https://api.github.com/users/valerioj","html_url":"https://github.com/valerioj","followers_url":"https://api.github.com/users/valerioj/followers","following_url":"https://api.github.com/users/valerioj/following{/other_user}","gists_url":"https://api.github.com/users/valerioj/gists{/gist_id}","starred_url":"https://api.github.com/users/valerioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerioj/subscriptions","organizations_url":"https://api.github.com/users/valerioj/orgs","repos_url":"https://api.github.com/users/valerioj/repos","events_url":"https://api.github.com/users/valerioj/events{/privacy}","received_events_url":"https://api.github.com/users/valerioj/received_events","type":"User","site_admin":false},"body":"since it is imposible to compare the plaintext password with the current state (the API returns the hash, even for versions <=2.4) there's no point of making it a property.","created_at":"2016-01-13T10:22:35Z","updated_at":"2016-01-13T10:22:35Z","html_url":"https://github.com/puppetlabs/puppetlabs-mongodb/pull/253#discussion_r49572392","pull_request_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/comments/49572392"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-mongodb/pull/253#discussion_r49572392"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253","id":55874484,"html_url":"https://github.com/puppetlabs/puppetlabs-mongodb/pull/253","diff_url":"https://github.com/puppetlabs/puppetlabs-mongodb/pull/253.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-mongodb/pull/253.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/issues/253","number":253,"state":"open","locked":false,"title":"added workaround to fix incompatible API for mongo<2.4 for password hash","user":{"login":"valerioj","id":763797,"avatar_url":"https://avatars.githubusercontent.com/u/763797?v=3","gravatar_id":"","url":"https://api.github.com/users/valerioj","html_url":"https://github.com/valerioj","followers_url":"https://api.github.com/users/valerioj/followers","following_url":"https://api.github.com/users/valerioj/following{/other_user}","gists_url":"https://api.github.com/users/valerioj/gists{/gist_id}","starred_url":"https://api.github.com/users/valerioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerioj/subscriptions","organizations_url":"https://api.github.com/users/valerioj/orgs","repos_url":"https://api.github.com/users/valerioj/repos","events_url":"https://api.github.com/users/valerioj/events{/privacy}","received_events_url":"https://api.github.com/users/valerioj/received_events","type":"User","site_admin":false},"body":"The mongodb API for versions <=2.4 has some differences regarding user management that until now were not considered by this puppet module.\r\n\r\nTo change a user password we need the command \"db.changeUserPassword\" and not \"updateUser\". On top of that, these older versions of mongo use plaintext passwords and don't allow hashes as input.\r\n\r\nHowever, the API returns the password hash and not the plaintext password when user info is requested...\r\n\r\nAll this is covered by the changes introduced on this fork.","created_at":"2016-01-13T09:49:10Z","updated_at":"2016-01-13T10:22:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d05789259f3807bc6bcc336670cef69ad94d7306","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/issues/253/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/statuses/76ca5755b2f84ca596f7e156c273a0f22570aef3","head":{"label":"valerioj:master","ref":"master","sha":"76ca5755b2f84ca596f7e156c273a0f22570aef3","user":{"login":"valerioj","id":763797,"avatar_url":"https://avatars.githubusercontent.com/u/763797?v=3","gravatar_id":"","url":"https://api.github.com/users/valerioj","html_url":"https://github.com/valerioj","followers_url":"https://api.github.com/users/valerioj/followers","following_url":"https://api.github.com/users/valerioj/following{/other_user}","gists_url":"https://api.github.com/users/valerioj/gists{/gist_id}","starred_url":"https://api.github.com/users/valerioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerioj/subscriptions","organizations_url":"https://api.github.com/users/valerioj/orgs","repos_url":"https://api.github.com/users/valerioj/repos","events_url":"https://api.github.com/users/valerioj/events{/privacy}","received_events_url":"https://api.github.com/users/valerioj/received_events","type":"User","site_admin":false},"repo":{"id":49435066,"name":"puppetlabs-mongodb","full_name":"valerioj/puppetlabs-mongodb","owner":{"login":"valerioj","id":763797,"avatar_url":"https://avatars.githubusercontent.com/u/763797?v=3","gravatar_id":"","url":"https://api.github.com/users/valerioj","html_url":"https://github.com/valerioj","followers_url":"https://api.github.com/users/valerioj/followers","following_url":"https://api.github.com/users/valerioj/following{/other_user}","gists_url":"https://api.github.com/users/valerioj/gists{/gist_id}","starred_url":"https://api.github.com/users/valerioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerioj/subscriptions","organizations_url":"https://api.github.com/users/valerioj/orgs","repos_url":"https://api.github.com/users/valerioj/repos","events_url":"https://api.github.com/users/valerioj/events{/privacy}","received_events_url":"https://api.github.com/users/valerioj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valerioj/puppetlabs-mongodb","description":"mongodb installation","fork":true,"url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb","forks_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/forks","keys_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/teams","hooks_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/hooks","issue_events_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/events","assignees_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/tags","blobs_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/languages","stargazers_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/stargazers","contributors_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/contributors","subscribers_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/subscribers","subscription_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/subscription","commits_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/merges","archive_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/downloads","issues_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/valerioj/puppetlabs-mongodb/releases{/id}","created_at":"2016-01-11T15:26:07Z","updated_at":"2016-01-11T15:26:08Z","pushed_at":"2016-01-12T15:40:38Z","git_url":"git://github.com/valerioj/puppetlabs-mongodb.git","ssh_url":"git@github.com:valerioj/puppetlabs-mongodb.git","clone_url":"https://github.com/valerioj/puppetlabs-mongodb.git","svn_url":"https://github.com/valerioj/puppetlabs-mongodb","homepage":null,"size":421,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"3bcfc75229c4faffe5ccfe9caf1278a54ef0f7cc","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":4118136,"name":"puppetlabs-mongodb","full_name":"puppetlabs/puppetlabs-mongodb","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/puppetlabs-mongodb","description":"mongodb installation","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb","forks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/releases{/id}","created_at":"2012-04-23T21:28:15Z","updated_at":"2016-01-04T12:32:09Z","pushed_at":"2016-01-13T09:49:10Z","git_url":"git://github.com/puppetlabs/puppetlabs-mongodb.git","ssh_url":"git@github.com:puppetlabs/puppetlabs-mongodb.git","clone_url":"https://github.com/puppetlabs/puppetlabs-mongodb.git","svn_url":"https://github.com/puppetlabs/puppetlabs-mongodb","homepage":null,"size":863,"stargazers_count":69,"watchers_count":69,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":272,"mirror_url":null,"open_issues_count":23,"forks":272,"open_issues":23,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-mongodb/pull/253"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/issues/253"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-mongodb/statuses/76ca5755b2f84ca596f7e156c273a0f22570aef3"}}}}