{"action":"created","comment":{"url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments/35584160","id":35584160,"diff_hunk":"@@ -0,0 +1,55 @@\n+---\n+# NOTE (leseb): wait for mon discovery and quorum resolution\n+# the admin key is not instantanely created so we have to wait a bit\n+- name: wait for client.admin key exists\n+  wait_for: path=/etc/ceph/ceph.client.admin.keyring\n+\n+- name: create ceph rest api keyring\n+  command: >\n+    ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring\n+    creates=/etc/ceph/ceph.client.restapi.keyring\n+  changed_when: false\n+  when:\n+    cephx and\n+    groups[restapi_group_name] is defined\n+\n+- include: openstack_config.yml\n+  when:\n+    openstack_config and\n+    cephx\n+\n+- name: find ceph keys\n+  shell: ls -1 /etc/ceph/*.keyring\n+  changed_when: false\n+  register: ceph_keys\n+  when: cephx\n+\n+- name: set keys permissions\n+  file: >\n+    path={{ item }}\n+    mode=0600\n+    owner=root\n+    group=root\n+  with_items:\n+    - \"{{ ceph_keys.stdout_lines }}\"\n+\n+- name: copy keys to the ansible server\n+  fetch: >\n+    src={{ item }}\n+    dest=fetch/{{ fsid }}/{{ item }}\n+    flat=yes\n+  with_items:\n+    - \"{{ ceph_keys.stdout_lines }}\"\n+    - /var/lib/ceph/bootstrap-osd/ceph.keyring\n+    - /var/lib/ceph/bootstrap-rgw/ceph.keyring\n+    - /var/lib/ceph/bootstrap-mds/ceph.keyring\n+  when: cephx","path":"roles/ceph-mon/tasks/ceph_keys.yml","position":46,"original_position":46,"commit_id":"c4fc39172a8c4e5973f4b6db5c6e39e654864565","original_commit_id":"c4fc39172a8c4e5973f4b6db5c6e39e654864565","user":{"login":"j2sol","id":523287,"avatar_url":"https://avatars.githubusercontent.com/u/523287?v=3","gravatar_id":"","url":"https://api.github.com/users/j2sol","html_url":"https://github.com/j2sol","followers_url":"https://api.github.com/users/j2sol/followers","following_url":"https://api.github.com/users/j2sol/following{/other_user}","gists_url":"https://api.github.com/users/j2sol/gists{/gist_id}","starred_url":"https://api.github.com/users/j2sol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2sol/subscriptions","organizations_url":"https://api.github.com/users/j2sol/orgs","repos_url":"https://api.github.com/users/j2sol/repos","events_url":"https://api.github.com/users/j2sol/events{/privacy}","received_events_url":"https://api.github.com/users/j2sol/received_events","type":"User","site_admin":false},"body":"Instead of fetching these, slurp should be used instead to read them into variables for the host. We don't really like having transient files in the working dir like this.","created_at":"2015-07-27T20:42:55Z","updated_at":"2015-07-27T20:42:55Z","html_url":"https://github.com/blueboxgroup/ursula/pull/1090#discussion_r35584160","pull_request_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090","_links":{"self":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments/35584160"},"html":{"href":"https://github.com/blueboxgroup/ursula/pull/1090#discussion_r35584160"},"pull_request":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090"}}},"pull_request":{"url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090","id":40940359,"html_url":"https://github.com/blueboxgroup/ursula/pull/1090","diff_url":"https://github.com/blueboxgroup/ursula/pull/1090.diff","patch_url":"https://github.com/blueboxgroup/ursula/pull/1090.patch","issue_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/1090","number":1090,"state":"open","locked":false,"title":"Initial integration for Ceph","user":{"login":"msambol","id":3310356,"avatar_url":"https://avatars.githubusercontent.com/u/3310356?v=3","gravatar_id":"","url":"https://api.github.com/users/msambol","html_url":"https://github.com/msambol","followers_url":"https://api.github.com/users/msambol/followers","following_url":"https://api.github.com/users/msambol/following{/other_user}","gists_url":"https://api.github.com/users/msambol/gists{/gist_id}","starred_url":"https://api.github.com/users/msambol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msambol/subscriptions","organizations_url":"https://api.github.com/users/msambol/orgs","repos_url":"https://api.github.com/users/msambol/repos","events_url":"https://api.github.com/users/msambol/events{/privacy}","received_events_url":"https://api.github.com/users/msambol/received_events","type":"User","site_admin":false},"body":"Laying out the folder structure for Ceph integration.\r\nWe still need to modify site.yml.","created_at":"2015-07-27T19:34:25Z","updated_at":"2015-07-27T20:42:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8675e9db84b40fdcf1f9bc8aa239295e08ba7d91","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090/commits","review_comments_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090/comments","review_comment_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/1090/comments","statuses_url":"https://api.github.com/repos/blueboxgroup/ursula/statuses/c4fc39172a8c4e5973f4b6db5c6e39e654864565","head":{"label":"msambol:ceph_integration","ref":"ceph_integration","sha":"c4fc39172a8c4e5973f4b6db5c6e39e654864565","user":{"login":"msambol","id":3310356,"avatar_url":"https://avatars.githubusercontent.com/u/3310356?v=3","gravatar_id":"","url":"https://api.github.com/users/msambol","html_url":"https://github.com/msambol","followers_url":"https://api.github.com/users/msambol/followers","following_url":"https://api.github.com/users/msambol/following{/other_user}","gists_url":"https://api.github.com/users/msambol/gists{/gist_id}","starred_url":"https://api.github.com/users/msambol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msambol/subscriptions","organizations_url":"https://api.github.com/users/msambol/orgs","repos_url":"https://api.github.com/users/msambol/repos","events_url":"https://api.github.com/users/msambol/events{/privacy}","received_events_url":"https://api.github.com/users/msambol/received_events","type":"User","site_admin":false},"repo":{"id":38712741,"name":"ursula","full_name":"msambol/ursula","owner":{"login":"msambol","id":3310356,"avatar_url":"https://avatars.githubusercontent.com/u/3310356?v=3","gravatar_id":"","url":"https://api.github.com/users/msambol","html_url":"https://github.com/msambol","followers_url":"https://api.github.com/users/msambol/followers","following_url":"https://api.github.com/users/msambol/following{/other_user}","gists_url":"https://api.github.com/users/msambol/gists{/gist_id}","starred_url":"https://api.github.com/users/msambol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msambol/subscriptions","organizations_url":"https://api.github.com/users/msambol/orgs","repos_url":"https://api.github.com/users/msambol/repos","events_url":"https://api.github.com/users/msambol/events{/privacy}","received_events_url":"https://api.github.com/users/msambol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msambol/ursula","description":"Ansible playbooks for operating OpenStack - Powers Blue Box Cloud.","fork":true,"url":"https://api.github.com/repos/msambol/ursula","forks_url":"https://api.github.com/repos/msambol/ursula/forks","keys_url":"https://api.github.com/repos/msambol/ursula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msambol/ursula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msambol/ursula/teams","hooks_url":"https://api.github.com/repos/msambol/ursula/hooks","issue_events_url":"https://api.github.com/repos/msambol/ursula/issues/events{/number}","events_url":"https://api.github.com/repos/msambol/ursula/events","assignees_url":"https://api.github.com/repos/msambol/ursula/assignees{/user}","branches_url":"https://api.github.com/repos/msambol/ursula/branches{/branch}","tags_url":"https://api.github.com/repos/msambol/ursula/tags","blobs_url":"https://api.github.com/repos/msambol/ursula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msambol/ursula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msambol/ursula/git/refs{/sha}","trees_url":"https://api.github.com/repos/msambol/ursula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msambol/ursula/statuses/{sha}","languages_url":"https://api.github.com/repos/msambol/ursula/languages","stargazers_url":"https://api.github.com/repos/msambol/ursula/stargazers","contributors_url":"https://api.github.com/repos/msambol/ursula/contributors","subscribers_url":"https://api.github.com/repos/msambol/ursula/subscribers","subscription_url":"https://api.github.com/repos/msambol/ursula/subscription","commits_url":"https://api.github.com/repos/msambol/ursula/commits{/sha}","git_commits_url":"https://api.github.com/repos/msambol/ursula/git/commits{/sha}","comments_url":"https://api.github.com/repos/msambol/ursula/comments{/number}","issue_comment_url":"https://api.github.com/repos/msambol/ursula/issues/comments{/number}","contents_url":"https://api.github.com/repos/msambol/ursula/contents/{+path}","compare_url":"https://api.github.com/repos/msambol/ursula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msambol/ursula/merges","archive_url":"https://api.github.com/repos/msambol/ursula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msambol/ursula/downloads","issues_url":"https://api.github.com/repos/msambol/ursula/issues{/number}","pulls_url":"https://api.github.com/repos/msambol/ursula/pulls{/number}","milestones_url":"https://api.github.com/repos/msambol/ursula/milestones{/number}","notifications_url":"https://api.github.com/repos/msambol/ursula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msambol/ursula/labels{/name}","releases_url":"https://api.github.com/repos/msambol/ursula/releases{/id}","created_at":"2015-07-07T20:24:01Z","updated_at":"2015-07-07T20:24:02Z","pushed_at":"2015-07-27T19:33:44Z","git_url":"git://github.com/msambol/ursula.git","ssh_url":"git@github.com:msambol/ursula.git","clone_url":"https://github.com/msambol/ursula.git","svn_url":"https://github.com/msambol/ursula","homepage":"https://www.blueboxcloud.com","size":3173,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"blueboxgroup:master","ref":"master","sha":"b2287f14b88d5480d58e114562bd84ad5137113b","user":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"repo":{"id":11848896,"name":"ursula","full_name":"blueboxgroup/ursula","owner":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blueboxgroup/ursula","description":"Ansible playbooks for operating OpenStack - Powers Blue Box Cloud.","fork":false,"url":"https://api.github.com/repos/blueboxgroup/ursula","forks_url":"https://api.github.com/repos/blueboxgroup/ursula/forks","keys_url":"https://api.github.com/repos/blueboxgroup/ursula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blueboxgroup/ursula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blueboxgroup/ursula/teams","hooks_url":"https://api.github.com/repos/blueboxgroup/ursula/hooks","issue_events_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/events{/number}","events_url":"https://api.github.com/repos/blueboxgroup/ursula/events","assignees_url":"https://api.github.com/repos/blueboxgroup/ursula/assignees{/user}","branches_url":"https://api.github.com/repos/blueboxgroup/ursula/branches{/branch}","tags_url":"https://api.github.com/repos/blueboxgroup/ursula/tags","blobs_url":"https://api.github.com/repos/blueboxgroup/ursula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blueboxgroup/ursula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blueboxgroup/ursula/git/refs{/sha}","trees_url":"https://api.github.com/repos/blueboxgroup/ursula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blueboxgroup/ursula/statuses/{sha}","languages_url":"https://api.github.com/repos/blueboxgroup/ursula/languages","stargazers_url":"https://api.github.com/repos/blueboxgroup/ursula/stargazers","contributors_url":"https://api.github.com/repos/blueboxgroup/ursula/contributors","subscribers_url":"https://api.github.com/repos/blueboxgroup/ursula/subscribers","subscription_url":"https://api.github.com/repos/blueboxgroup/ursula/subscription","commits_url":"https://api.github.com/repos/blueboxgroup/ursula/commits{/sha}","git_commits_url":"https://api.github.com/repos/blueboxgroup/ursula/git/commits{/sha}","comments_url":"https://api.github.com/repos/blueboxgroup/ursula/comments{/number}","issue_comment_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/comments{/number}","contents_url":"https://api.github.com/repos/blueboxgroup/ursula/contents/{+path}","compare_url":"https://api.github.com/repos/blueboxgroup/ursula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blueboxgroup/ursula/merges","archive_url":"https://api.github.com/repos/blueboxgroup/ursula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blueboxgroup/ursula/downloads","issues_url":"https://api.github.com/repos/blueboxgroup/ursula/issues{/number}","pulls_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls{/number}","milestones_url":"https://api.github.com/repos/blueboxgroup/ursula/milestones{/number}","notifications_url":"https://api.github.com/repos/blueboxgroup/ursula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blueboxgroup/ursula/labels{/name}","releases_url":"https://api.github.com/repos/blueboxgroup/ursula/releases{/id}","created_at":"2013-08-02T17:37:26Z","updated_at":"2015-07-26T08:09:31Z","pushed_at":"2015-07-27T19:39:35Z","git_url":"git://github.com/blueboxgroup/ursula.git","ssh_url":"git@github.com:blueboxgroup/ursula.git","clone_url":"https://github.com/blueboxgroup/ursula.git","svn_url":"https://github.com/blueboxgroup/ursula","homepage":"https://www.blueboxcloud.com","size":12913,"stargazers_count":89,"watchers_count":89,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":30,"forks":44,"open_issues":30,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090"},"html":{"href":"https://github.com/blueboxgroup/ursula/pull/1090"},"issue":{"href":"https://api.github.com/repos/blueboxgroup/ursula/issues/1090"},"comments":{"href":"https://api.github.com/repos/blueboxgroup/ursula/issues/1090/comments"},"review_comments":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090/comments"},"review_comment":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1090/commits"},"statuses":{"href":"https://api.github.com/repos/blueboxgroup/ursula/statuses/c4fc39172a8c4e5973f4b6db5c6e39e654864565"}}}}