{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments/184180417","pull_request_review_id":115323039,"id":184180417,"diff_hunk":"@@ -5,4 +5,34 @@\n     name: openshift-monitor-availability\n     description: Openshift availability monitoring applications.\n \n+- name: Create temp directory for doing work in on target\n+  command: mktemp -td openshift-monitor-availability-XXXXXX\n+  register: mktemp\n+  changed_when: False\n+\n+- name: Copy files to temp directory\n+  copy:\n+    src: \"{{ role_path }}/files/\"\n+    dest: \"{{ mktemp.stdout }}\"\n+\n+- name: Copy admin client config\n+  copy:\n+    src: \"{{ openshift.common.config_base }}/master/admin.kubeconfig\"\n+    dest: \"{{ mktemp.stdout }}/admin.kubeconfig\"\n+    remote_src: yes\n+\n+- name: Ensure Prometheus role exists\n+  shell: >\n+    {{ openshift_client_binary }} apply --config={{ mktemp.stdout }}/admin.kubeconfig -f {{ mktemp.stdout }}/prometheus-k8s-role.yaml\n+\n+- name: Ensure Prometheus role binding exists\n+  shell: >","path":"roles/openshift_monitor_availability/tasks/install.yaml","position":25,"original_position":25,"commit_id":"564b1f09f8ea5c8f67b2c23623b4da7391eadcb3","original_commit_id":"564b1f09f8ea5c8f67b2c23623b4da7391eadcb3","user":{"login":"michaelgugino","id":6255238,"avatar_url":"https://avatars0.githubusercontent.com/u/6255238?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelgugino","html_url":"https://github.com/michaelgugino","followers_url":"https://api.github.com/users/michaelgugino/followers","following_url":"https://api.github.com/users/michaelgugino/following{/other_user}","gists_url":"https://api.github.com/users/michaelgugino/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelgugino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelgugino/subscriptions","organizations_url":"https://api.github.com/users/michaelgugino/orgs","repos_url":"https://api.github.com/users/michaelgugino/repos","events_url":"https://api.github.com/users/michaelgugino/events{/privacy}","received_events_url":"https://api.github.com/users/michaelgugino/received_events","type":"User","site_admin":false},"body":"Use command here instead of shell","created_at":"2018-04-25T19:31:11Z","updated_at":"2018-04-25T19:31:20Z","html_url":"https://github.com/openshift/openshift-ansible/pull/8138#discussion_r184180417","pull_request_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments/184180417"},"html":{"href":"https://github.com/openshift/openshift-ansible/pull/8138#discussion_r184180417"},"pull_request":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138","id":184075038,"html_url":"https://github.com/openshift/openshift-ansible/pull/8138","diff_url":"https://github.com/openshift/openshift-ansible/pull/8138.diff","patch_url":"https://github.com/openshift/openshift-ansible/pull/8138.patch","issue_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/8138","number":8138,"state":"open","locked":false,"title":"Allow Prometheus scraping of availability namespace","user":{"login":"ironcladlou","id":298299,"avatar_url":"https://avatars0.githubusercontent.com/u/298299?v=4","gravatar_id":"","url":"https://api.github.com/users/ironcladlou","html_url":"https://github.com/ironcladlou","followers_url":"https://api.github.com/users/ironcladlou/followers","following_url":"https://api.github.com/users/ironcladlou/following{/other_user}","gists_url":"https://api.github.com/users/ironcladlou/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcladlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcladlou/subscriptions","organizations_url":"https://api.github.com/users/ironcladlou/orgs","repos_url":"https://api.github.com/users/ironcladlou/repos","events_url":"https://api.github.com/users/ironcladlou/events{/privacy}","received_events_url":"https://api.github.com/users/ironcladlou/received_events","type":"User","site_admin":false},"body":"Add a role and binding to allow Prometheus to scrape endpoints in the\r\nopenshift-monitor-availability namespace.","created_at":"2018-04-25T15:27:07Z","updated_at":"2018-04-25T19:31:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"435524a99415c915ed4289591b30cfd15fd17a3d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":681633081,"url":"https://api.github.com/repos/openshift/openshift-ansible/labels/size/M","name":"size/M","color":"eebb00","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138/commits","review_comments_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138/comments","review_comment_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/8138/comments","statuses_url":"https://api.github.com/repos/openshift/openshift-ansible/statuses/564b1f09f8ea5c8f67b2c23623b4da7391eadcb3","head":{"label":"ironcladlou:availability-prom-role","ref":"availability-prom-role","sha":"564b1f09f8ea5c8f67b2c23623b4da7391eadcb3","user":{"login":"ironcladlou","id":298299,"avatar_url":"https://avatars0.githubusercontent.com/u/298299?v=4","gravatar_id":"","url":"https://api.github.com/users/ironcladlou","html_url":"https://github.com/ironcladlou","followers_url":"https://api.github.com/users/ironcladlou/followers","following_url":"https://api.github.com/users/ironcladlou/following{/other_user}","gists_url":"https://api.github.com/users/ironcladlou/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcladlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcladlou/subscriptions","organizations_url":"https://api.github.com/users/ironcladlou/orgs","repos_url":"https://api.github.com/users/ironcladlou/repos","events_url":"https://api.github.com/users/ironcladlou/events{/privacy}","received_events_url":"https://api.github.com/users/ironcladlou/received_events","type":"User","site_admin":false},"repo":{"id":57323658,"name":"openshift-ansible","full_name":"ironcladlou/openshift-ansible","owner":{"login":"ironcladlou","id":298299,"avatar_url":"https://avatars0.githubusercontent.com/u/298299?v=4","gravatar_id":"","url":"https://api.github.com/users/ironcladlou","html_url":"https://github.com/ironcladlou","followers_url":"https://api.github.com/users/ironcladlou/followers","following_url":"https://api.github.com/users/ironcladlou/following{/other_user}","gists_url":"https://api.github.com/users/ironcladlou/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcladlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcladlou/subscriptions","organizations_url":"https://api.github.com/users/ironcladlou/orgs","repos_url":"https://api.github.com/users/ironcladlou/repos","events_url":"https://api.github.com/users/ironcladlou/events{/privacy}","received_events_url":"https://api.github.com/users/ironcladlou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ironcladlou/openshift-ansible","description":"OpenShift Ansible Code","fork":true,"url":"https://api.github.com/repos/ironcladlou/openshift-ansible","forks_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/forks","keys_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/teams","hooks_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/hooks","issue_events_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/events","assignees_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/tags","blobs_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/languages","stargazers_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/stargazers","contributors_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/contributors","subscribers_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/subscribers","subscription_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/subscription","commits_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/merges","archive_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/downloads","issues_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/labels{/name}","releases_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ironcladlou/openshift-ansible/deployments","created_at":"2016-04-28T18:09:21Z","updated_at":"2018-03-21T19:58:49Z","pushed_at":"2018-04-25T15:26:37Z","git_url":"git://github.com/ironcladlou/openshift-ansible.git","ssh_url":"git@github.com:ironcladlou/openshift-ansible.git","clone_url":"https://github.com/ironcladlou/openshift-ansible.git","svn_url":"https://github.com/ironcladlou/openshift-ansible","homepage":"install.openshift.com","size":23121,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"8814f904093a6322e1f14e8d3c7decfe5d591d07","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":24109199,"name":"openshift-ansible","full_name":"openshift/openshift-ansible","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/openshift-ansible","description":"OpenShift Installation and Configuration Management","fork":false,"url":"https://api.github.com/repos/openshift/openshift-ansible","forks_url":"https://api.github.com/repos/openshift/openshift-ansible/forks","keys_url":"https://api.github.com/repos/openshift/openshift-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/openshift-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/openshift-ansible/teams","hooks_url":"https://api.github.com/repos/openshift/openshift-ansible/hooks","issue_events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/openshift-ansible/events","assignees_url":"https://api.github.com/repos/openshift/openshift-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/openshift-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/openshift-ansible/tags","blobs_url":"https://api.github.com/repos/openshift/openshift-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/openshift-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/openshift-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/openshift-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/openshift-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/openshift-ansible/languages","stargazers_url":"https://api.github.com/repos/openshift/openshift-ansible/stargazers","contributors_url":"https://api.github.com/repos/openshift/openshift-ansible/contributors","subscribers_url":"https://api.github.com/repos/openshift/openshift-ansible/subscribers","subscription_url":"https://api.github.com/repos/openshift/openshift-ansible/subscription","commits_url":"https://api.github.com/repos/openshift/openshift-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/openshift-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/openshift-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/openshift-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/openshift-ansible/merges","archive_url":"https://api.github.com/repos/openshift/openshift-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/openshift-ansible/downloads","issues_url":"https://api.github.com/repos/openshift/openshift-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/openshift-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/openshift-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/openshift-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/labels{/name}","releases_url":"https://api.github.com/repos/openshift/openshift-ansible/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/openshift-ansible/deployments","created_at":"2014-09-16T17:07:51Z","updated_at":"2018-04-25T18:11:30Z","pushed_at":"2018-04-25T18:11:02Z","git_url":"git://github.com/openshift/openshift-ansible.git","ssh_url":"git@github.com:openshift/openshift-ansible.git","clone_url":"https://github.com/openshift/openshift-ansible.git","svn_url":"https://github.com/openshift/openshift-ansible","homepage":"https://install.openshift.com","size":27734,"stargazers_count":891,"watchers_count":891,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1306,"mirror_url":null,"archived":false,"open_issues_count":883,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1306,"open_issues":883,"watchers":891,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138"},"html":{"href":"https://github.com/openshift/openshift-ansible/pull/8138"},"issue":{"href":"https://api.github.com/repos/openshift/openshift-ansible/issues/8138"},"comments":{"href":"https://api.github.com/repos/openshift/openshift-ansible/issues/8138/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/openshift-ansible/pulls/8138/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/openshift-ansible/statuses/564b1f09f8ea5c8f67b2c23623b4da7391eadcb3"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"michaelgugino"}}