{"action":"created","comment":{"url":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/comments/46124590","id":46124590,"diff_hunk":"@@ -61,6 +61,27 @@\n   include_recipe \"ceph::radosgw_keystone\"\n end\n \n+# Create admin user and add caps to access buckets and users\n+ruby_block \"create radosgw-admin-access\" do\n+  block do\n+    uid = \"rgw_admin\"\n+\n+    Chef::Log.info(\"Creating RadosGW admin user with capabilities\")\n+    user_add = Mixlib::ShellOut.new(\"radosgw-admin user create --display-name=RadosGW_Admin --uid=#{uid}\")\n+    user_add.run_command\n+    user_add.error!\n+\n+    caps_bucket = Mixlib::ShellOut.new(\"radosgw-admin caps add --uid=#{uid} --caps='buckets=*'\")\n+    caps_bucket.run_command\n+    caps_bucket.error!\n+\n+    caps_users = Mixlib::ShellOut.new(\"radosgw-admin caps add --uid=#{uid} --caps='users=*'\")\n+    caps_users.run_command\n+    caps_users.error!\n+  end\n+  action :create","path":"chef/cookbooks/ceph/recipes/radosgw.rb","position":22,"original_position":22,"commit_id":"4780e9bc06a853fa3720d714c3e2e2cb0246782f","original_commit_id":"4780e9bc06a853fa3720d714c3e2e2cb0246782f","user":{"login":"dirkmueller","id":1029152,"avatar_url":"https://avatars.githubusercontent.com/u/1029152?v=3","gravatar_id":"","url":"https://api.github.com/users/dirkmueller","html_url":"https://github.com/dirkmueller","followers_url":"https://api.github.com/users/dirkmueller/followers","following_url":"https://api.github.com/users/dirkmueller/following{/other_user}","gists_url":"https://api.github.com/users/dirkmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/dirkmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirkmueller/subscriptions","organizations_url":"https://api.github.com/users/dirkmueller/orgs","repos_url":"https://api.github.com/users/dirkmueller/repos","events_url":"https://api.github.com/users/dirkmueller/events{/privacy}","received_events_url":"https://api.github.com/users/dirkmueller/received_events","type":"User","site_admin":false},"body":"isn't there some only_if / not_if missing? otherwise this causes an error on the 2nd run, doesn't it?\r\n","created_at":"2015-11-30T10:00:06Z","updated_at":"2015-11-30T10:00:06Z","html_url":"https://github.com/crowbar/crowbar-ceph/pull/20#discussion_r46124590","pull_request_url":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/comments/46124590"},"html":{"href":"https://github.com/crowbar/crowbar-ceph/pull/20#discussion_r46124590"},"pull_request":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20","id":49800993,"html_url":"https://github.com/crowbar/crowbar-ceph/pull/20","diff_url":"https://github.com/crowbar/crowbar-ceph/pull/20.diff","patch_url":"https://github.com/crowbar/crowbar-ceph/pull/20.patch","issue_url":"https://api.github.com/repos/crowbar/crowbar-ceph/issues/20","number":20,"state":"open","locked":false,"title":"[WIP] Authentication to allow access to radosgw admin","user":{"login":"mmnelemane","id":13483069,"avatar_url":"https://avatars.githubusercontent.com/u/13483069?v=3","gravatar_id":"","url":"https://api.github.com/users/mmnelemane","html_url":"https://github.com/mmnelemane","followers_url":"https://api.github.com/users/mmnelemane/followers","following_url":"https://api.github.com/users/mmnelemane/following{/other_user}","gists_url":"https://api.github.com/users/mmnelemane/gists{/gist_id}","starred_url":"https://api.github.com/users/mmnelemane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmnelemane/subscriptions","organizations_url":"https://api.github.com/users/mmnelemane/orgs","repos_url":"https://api.github.com/users/mmnelemane/repos","events_url":"https://api.github.com/users/mmnelemane/events{/privacy}","received_events_url":"https://api.github.com/users/mmnelemane/received_events","type":"User","site_admin":false},"body":"Updating caps for admin tenant ID to access radosgw objects from ceilometer  through radosgw-admin.\r\nConfig file updated to accept  admin role.","created_at":"2015-11-05T09:41:38Z","updated_at":"2015-11-30T10:00:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecbcccdd0130d8ea6aed48b77dc67715786306cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20/commits","review_comments_url":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20/comments","review_comment_url":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowbar/crowbar-ceph/issues/20/comments","statuses_url":"https://api.github.com/repos/crowbar/crowbar-ceph/statuses/4780e9bc06a853fa3720d714c3e2e2cb0246782f","head":{"label":"mmnelemane:master","ref":"master","sha":"4780e9bc06a853fa3720d714c3e2e2cb0246782f","user":{"login":"mmnelemane","id":13483069,"avatar_url":"https://avatars.githubusercontent.com/u/13483069?v=3","gravatar_id":"","url":"https://api.github.com/users/mmnelemane","html_url":"https://github.com/mmnelemane","followers_url":"https://api.github.com/users/mmnelemane/followers","following_url":"https://api.github.com/users/mmnelemane/following{/other_user}","gists_url":"https://api.github.com/users/mmnelemane/gists{/gist_id}","starred_url":"https://api.github.com/users/mmnelemane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmnelemane/subscriptions","organizations_url":"https://api.github.com/users/mmnelemane/orgs","repos_url":"https://api.github.com/users/mmnelemane/repos","events_url":"https://api.github.com/users/mmnelemane/events{/privacy}","received_events_url":"https://api.github.com/users/mmnelemane/received_events","type":"User","site_admin":false},"repo":{"id":45264818,"name":"crowbar-ceph","full_name":"mmnelemane/crowbar-ceph","owner":{"login":"mmnelemane","id":13483069,"avatar_url":"https://avatars.githubusercontent.com/u/13483069?v=3","gravatar_id":"","url":"https://api.github.com/users/mmnelemane","html_url":"https://github.com/mmnelemane","followers_url":"https://api.github.com/users/mmnelemane/followers","following_url":"https://api.github.com/users/mmnelemane/following{/other_user}","gists_url":"https://api.github.com/users/mmnelemane/gists{/gist_id}","starred_url":"https://api.github.com/users/mmnelemane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmnelemane/subscriptions","organizations_url":"https://api.github.com/users/mmnelemane/orgs","repos_url":"https://api.github.com/users/mmnelemane/repos","events_url":"https://api.github.com/users/mmnelemane/events{/privacy}","received_events_url":"https://api.github.com/users/mmnelemane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmnelemane/crowbar-ceph","description":"Ceph deployment for Crowbar","fork":true,"url":"https://api.github.com/repos/mmnelemane/crowbar-ceph","forks_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/forks","keys_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/teams","hooks_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/hooks","issue_events_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/issues/events{/number}","events_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/events","assignees_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/assignees{/user}","branches_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/branches{/branch}","tags_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/tags","blobs_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/languages","stargazers_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/stargazers","contributors_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/contributors","subscribers_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/subscribers","subscription_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/subscription","commits_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/contents/{+path}","compare_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/merges","archive_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/downloads","issues_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/issues{/number}","pulls_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/labels{/name}","releases_url":"https://api.github.com/repos/mmnelemane/crowbar-ceph/releases{/id}","created_at":"2015-10-30T17:03:06Z","updated_at":"2015-10-30T17:03:07Z","pushed_at":"2015-11-30T08:47:04Z","git_url":"git://github.com/mmnelemane/crowbar-ceph.git","ssh_url":"git@github.com:mmnelemane/crowbar-ceph.git","clone_url":"https://github.com/mmnelemane/crowbar-ceph.git","svn_url":"https://github.com/mmnelemane/crowbar-ceph","homepage":null,"size":398,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"crowbar:master","ref":"master","sha":"e44ef19c5ce770a8b87a12a3e114be8320dd94a5","user":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"repo":{"id":39006924,"name":"crowbar-ceph","full_name":"crowbar/crowbar-ceph","owner":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowbar/crowbar-ceph","description":"Ceph deployment for Crowbar","fork":false,"url":"https://api.github.com/repos/crowbar/crowbar-ceph","forks_url":"https://api.github.com/repos/crowbar/crowbar-ceph/forks","keys_url":"https://api.github.com/repos/crowbar/crowbar-ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowbar/crowbar-ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowbar/crowbar-ceph/teams","hooks_url":"https://api.github.com/repos/crowbar/crowbar-ceph/hooks","issue_events_url":"https://api.github.com/repos/crowbar/crowbar-ceph/issues/events{/number}","events_url":"https://api.github.com/repos/crowbar/crowbar-ceph/events","assignees_url":"https://api.github.com/repos/crowbar/crowbar-ceph/assignees{/user}","branches_url":"https://api.github.com/repos/crowbar/crowbar-ceph/branches{/branch}","tags_url":"https://api.github.com/repos/crowbar/crowbar-ceph/tags","blobs_url":"https://api.github.com/repos/crowbar/crowbar-ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowbar/crowbar-ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowbar/crowbar-ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowbar/crowbar-ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowbar/crowbar-ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/crowbar/crowbar-ceph/languages","stargazers_url":"https://api.github.com/repos/crowbar/crowbar-ceph/stargazers","contributors_url":"https://api.github.com/repos/crowbar/crowbar-ceph/contributors","subscribers_url":"https://api.github.com/repos/crowbar/crowbar-ceph/subscribers","subscription_url":"https://api.github.com/repos/crowbar/crowbar-ceph/subscription","commits_url":"https://api.github.com/repos/crowbar/crowbar-ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowbar/crowbar-ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowbar/crowbar-ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowbar/crowbar-ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowbar/crowbar-ceph/contents/{+path}","compare_url":"https://api.github.com/repos/crowbar/crowbar-ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowbar/crowbar-ceph/merges","archive_url":"https://api.github.com/repos/crowbar/crowbar-ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowbar/crowbar-ceph/downloads","issues_url":"https://api.github.com/repos/crowbar/crowbar-ceph/issues{/number}","pulls_url":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/crowbar/crowbar-ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/crowbar/crowbar-ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowbar/crowbar-ceph/labels{/name}","releases_url":"https://api.github.com/repos/crowbar/crowbar-ceph/releases{/id}","created_at":"2015-07-13T10:56:14Z","updated_at":"2015-08-20T13:43:43Z","pushed_at":"2015-11-30T08:47:04Z","git_url":"git://github.com/crowbar/crowbar-ceph.git","ssh_url":"git@github.com:crowbar/crowbar-ceph.git","clone_url":"https://github.com/crowbar/crowbar-ceph.git","svn_url":"https://github.com/crowbar/crowbar-ceph","homepage":null,"size":414,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":4,"forks":14,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20"},"html":{"href":"https://github.com/crowbar/crowbar-ceph/pull/20"},"issue":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/issues/20"},"comments":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/crowbar/crowbar-ceph/statuses/4780e9bc06a853fa3720d714c3e2e2cb0246782f"}}}}