{"action":"created","comment":{"url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/comments/28275727","id":28275727,"diff_hunk":"@@ -117,6 +117,15 @@\n   action :create\n end\n \n+\n+# Make sure that the permissions for the  'mysql' directory are set correctly.\n+# When recovering from a backup uids could have changed.\n+execute \"change permissions #{new_mysql_dir} owner\" do\n+  command \"chown -Rf mysql:mysql #{new_mysql_dir}\"\n+  only_if { Etc.getpwuid(File.stat(new_mysql_dir).uid).name != \"mysql\" }\n+end\n+\n+","path":"recipes/stripe.rb","position":12,"original_position":12,"commit_id":"2c3035ebac0d6dc4dff115e3b331eb153433db5a","original_commit_id":"2c3035ebac0d6dc4dff115e3b331eb153433db5a","user":{"login":"lopaka","id":820060,"avatar_url":"https://avatars.githubusercontent.com/u/820060?v=3","gravatar_id":"","url":"https://api.github.com/users/lopaka","html_url":"https://github.com/lopaka","followers_url":"https://api.github.com/users/lopaka/followers","following_url":"https://api.github.com/users/lopaka/following{/other_user}","gists_url":"https://api.github.com/users/lopaka/gists{/gist_id}","starred_url":"https://api.github.com/users/lopaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lopaka/subscriptions","organizations_url":"https://api.github.com/users/lopaka/orgs","repos_url":"https://api.github.com/users/lopaka/repos","events_url":"https://api.github.com/users/lopaka/events{/privacy}","received_events_url":"https://api.github.com/users/lopaka/received_events","type":"User","site_admin":false},"body":"Why the extra newline?","created_at":"2015-04-13T20:28:34Z","updated_at":"2015-04-13T20:28:34Z","html_url":"https://github.com/rightscale-cookbooks/rs-mysql/pull/34#discussion_r28275727","pull_request_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/comments/28275727"},"html":{"href":"https://github.com/rightscale-cookbooks/rs-mysql/pull/34#discussion_r28275727"},"pull_request":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34","id":33186217,"html_url":"https://github.com/rightscale-cookbooks/rs-mysql/pull/34","diff_url":"https://github.com/rightscale-cookbooks/rs-mysql/pull/34.diff","patch_url":"https://github.com/rightscale-cookbooks/rs-mysql/pull/34.patch","issue_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/issues/34","number":34,"state":"open","locked":false,"title":"Ps permission auto.cnf fix","user":{"login":"gonzalez","id":95561,"avatar_url":"https://avatars.githubusercontent.com/u/95561?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalez","html_url":"https://github.com/gonzalez","followers_url":"https://api.github.com/users/gonzalez/followers","following_url":"https://api.github.com/users/gonzalez/following{/other_user}","gists_url":"https://api.github.com/users/gonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalez/subscriptions","organizations_url":"https://api.github.com/users/gonzalez/orgs","repos_url":"https://api.github.com/users/gonzalez/repos","events_url":"https://api.github.com/users/gonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalez/received_events","type":"User","site_admin":false},"body":"Added the code to remove auto.cnf if exists, introduced in mysql 5.6+, causes issues when starting slave because it has the masters uuid information and attempts to use it as its own.  Added recursive mysql ownership of /var/lib/mysql. When recovering from a backup the UID from the system might differ. \r\n\r\n","created_at":"2015-04-13T17:46:32Z","updated_at":"2015-04-13T20:28:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17f9a89cf053012258026d7f212873ba2e1f15fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34/commits","review_comments_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34/comments","review_comment_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/issues/34/comments","statuses_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/statuses/2c3035ebac0d6dc4dff115e3b331eb153433db5a","head":{"label":"gonzalez:ps-permission-auto.cnf-fix","ref":"ps-permission-auto.cnf-fix","sha":"2c3035ebac0d6dc4dff115e3b331eb153433db5a","user":{"login":"gonzalez","id":95561,"avatar_url":"https://avatars.githubusercontent.com/u/95561?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalez","html_url":"https://github.com/gonzalez","followers_url":"https://api.github.com/users/gonzalez/followers","following_url":"https://api.github.com/users/gonzalez/following{/other_user}","gists_url":"https://api.github.com/users/gonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalez/subscriptions","organizations_url":"https://api.github.com/users/gonzalez/orgs","repos_url":"https://api.github.com/users/gonzalez/repos","events_url":"https://api.github.com/users/gonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalez/received_events","type":"User","site_admin":false},"repo":{"id":33629515,"name":"rs-mysql","full_name":"gonzalez/rs-mysql","owner":{"login":"gonzalez","id":95561,"avatar_url":"https://avatars.githubusercontent.com/u/95561?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalez","html_url":"https://github.com/gonzalez","followers_url":"https://api.github.com/users/gonzalez/followers","following_url":"https://api.github.com/users/gonzalez/following{/other_user}","gists_url":"https://api.github.com/users/gonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalez/subscriptions","organizations_url":"https://api.github.com/users/gonzalez/orgs","repos_url":"https://api.github.com/users/gonzalez/repos","events_url":"https://api.github.com/users/gonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gonzalez/rs-mysql","description":"Chef cookbook for setting up a MySQL server in RightScale","fork":true,"url":"https://api.github.com/repos/gonzalez/rs-mysql","forks_url":"https://api.github.com/repos/gonzalez/rs-mysql/forks","keys_url":"https://api.github.com/repos/gonzalez/rs-mysql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonzalez/rs-mysql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonzalez/rs-mysql/teams","hooks_url":"https://api.github.com/repos/gonzalez/rs-mysql/hooks","issue_events_url":"https://api.github.com/repos/gonzalez/rs-mysql/issues/events{/number}","events_url":"https://api.github.com/repos/gonzalez/rs-mysql/events","assignees_url":"https://api.github.com/repos/gonzalez/rs-mysql/assignees{/user}","branches_url":"https://api.github.com/repos/gonzalez/rs-mysql/branches{/branch}","tags_url":"https://api.github.com/repos/gonzalez/rs-mysql/tags","blobs_url":"https://api.github.com/repos/gonzalez/rs-mysql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonzalez/rs-mysql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonzalez/rs-mysql/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonzalez/rs-mysql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonzalez/rs-mysql/statuses/{sha}","languages_url":"https://api.github.com/repos/gonzalez/rs-mysql/languages","stargazers_url":"https://api.github.com/repos/gonzalez/rs-mysql/stargazers","contributors_url":"https://api.github.com/repos/gonzalez/rs-mysql/contributors","subscribers_url":"https://api.github.com/repos/gonzalez/rs-mysql/subscribers","subscription_url":"https://api.github.com/repos/gonzalez/rs-mysql/subscription","commits_url":"https://api.github.com/repos/gonzalez/rs-mysql/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonzalez/rs-mysql/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonzalez/rs-mysql/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonzalez/rs-mysql/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonzalez/rs-mysql/contents/{+path}","compare_url":"https://api.github.com/repos/gonzalez/rs-mysql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonzalez/rs-mysql/merges","archive_url":"https://api.github.com/repos/gonzalez/rs-mysql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonzalez/rs-mysql/downloads","issues_url":"https://api.github.com/repos/gonzalez/rs-mysql/issues{/number}","pulls_url":"https://api.github.com/repos/gonzalez/rs-mysql/pulls{/number}","milestones_url":"https://api.github.com/repos/gonzalez/rs-mysql/milestones{/number}","notifications_url":"https://api.github.com/repos/gonzalez/rs-mysql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonzalez/rs-mysql/labels{/name}","releases_url":"https://api.github.com/repos/gonzalez/rs-mysql/releases{/id}","created_at":"2015-04-08T20:07:27Z","updated_at":"2015-04-13T17:37:30Z","pushed_at":"2015-04-13T17:41:31Z","git_url":"git://github.com/gonzalez/rs-mysql.git","ssh_url":"git@github.com:gonzalez/rs-mysql.git","clone_url":"https://github.com/gonzalez/rs-mysql.git","svn_url":"https://github.com/gonzalez/rs-mysql","homepage":"","size":321,"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":"rightscale-cookbooks:master","ref":"master","sha":"91d34d46d4e42884e669f954cc0dc07842de9193","user":{"login":"rightscale-cookbooks","id":4042499,"avatar_url":"https://avatars.githubusercontent.com/u/4042499?v=3","gravatar_id":"","url":"https://api.github.com/users/rightscale-cookbooks","html_url":"https://github.com/rightscale-cookbooks","followers_url":"https://api.github.com/users/rightscale-cookbooks/followers","following_url":"https://api.github.com/users/rightscale-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/rightscale-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/rightscale-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightscale-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/rightscale-cookbooks/orgs","repos_url":"https://api.github.com/users/rightscale-cookbooks/repos","events_url":"https://api.github.com/users/rightscale-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/rightscale-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":12767092,"name":"rs-mysql","full_name":"rightscale-cookbooks/rs-mysql","owner":{"login":"rightscale-cookbooks","id":4042499,"avatar_url":"https://avatars.githubusercontent.com/u/4042499?v=3","gravatar_id":"","url":"https://api.github.com/users/rightscale-cookbooks","html_url":"https://github.com/rightscale-cookbooks","followers_url":"https://api.github.com/users/rightscale-cookbooks/followers","following_url":"https://api.github.com/users/rightscale-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/rightscale-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/rightscale-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightscale-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/rightscale-cookbooks/orgs","repos_url":"https://api.github.com/users/rightscale-cookbooks/repos","events_url":"https://api.github.com/users/rightscale-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/rightscale-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rightscale-cookbooks/rs-mysql","description":"Chef cookbook for setting up a MySQL server in RightScale","fork":false,"url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql","forks_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/forks","keys_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/teams","hooks_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/hooks","issue_events_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/issues/events{/number}","events_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/events","assignees_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/assignees{/user}","branches_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/branches{/branch}","tags_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/tags","blobs_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/git/refs{/sha}","trees_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/statuses/{sha}","languages_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/languages","stargazers_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/stargazers","contributors_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/contributors","subscribers_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/subscribers","subscription_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/subscription","commits_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/commits{/sha}","git_commits_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/git/commits{/sha}","comments_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/comments{/number}","issue_comment_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/issues/comments{/number}","contents_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/contents/{+path}","compare_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/merges","archive_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/downloads","issues_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/issues{/number}","pulls_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls{/number}","milestones_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/milestones{/number}","notifications_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/labels{/name}","releases_url":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/releases{/id}","created_at":"2013-09-11T20:36:35Z","updated_at":"2015-01-22T20:01:54Z","pushed_at":"2015-04-13T17:46:33Z","git_url":"git://github.com/rightscale-cookbooks/rs-mysql.git","ssh_url":"git@github.com:rightscale-cookbooks/rs-mysql.git","clone_url":"https://github.com/rightscale-cookbooks/rs-mysql.git","svn_url":"https://github.com/rightscale-cookbooks/rs-mysql","homepage":"","size":1031,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34"},"html":{"href":"https://github.com/rightscale-cookbooks/rs-mysql/pull/34"},"issue":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/issues/34"},"comments":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/rightscale-cookbooks/rs-mysql/statuses/2c3035ebac0d6dc4dff115e3b331eb153433db5a"}}}}