{"action":"created","comment":{"url":"https://api.github.com/repos/quipucords/quipucords/pulls/comments/176727189","pull_request_review_id":106481251,"id":176727189,"diff_hunk":"@@ -96,3 +96,66 @@\n   become: true\n   when: 'jboss_fuse'\n \n+- name: Use locate to look for camel-ver\n+  raw: locate camel-core | sed -n 's/.*\\(redhat-[0-9]\\{6\\}\\).*/\\1/p'\n+  register: jboss_fuse_camel_ver\n+  ignore_errors: yes\n+  when: 'have_locate and jboss_fuse'\n+\n+- name: check /system/org/apache/camel/camel-core for camel-ver\n+  raw: ls -1 \"{{ item }}\"/system/org/apache/camel/camel-core 2>/dev/null | sed -n 's/^.*\\(redhat-[0-9]\\{6\\}\\).*/\\1/p'\n+  register: jboss_fuse_on_karaf_camel_ver\n+  ignore_errors: yes\n+  with_items: \"{{ karaf_homes }}\"\n+  when: 'jboss_fuse'\n+\n+- name: set the camel-ver fact\n+  set_fact:\n+      fuse_camel_version: \"{{\n+      (jboss_fuse_camel_ver.get('stdout_lines', []) +\n+       jboss_fuse_on_karaf_camel_ver.get('stdout_lines', [])) | unique }}\"\n+  ignore_errors: yes\n+  when: 'jboss_fuse'\n+\n+- name: Use locate to look for activemq-ver\n+  raw: locate activemq | sed -n 's/^.*\\(redhat-[0-9]\\{6\\}\\).*/\\1/p'\n+  register: jboss_fuse_activemq_ver\n+  ignore_errors: yes\n+  when: 'have_locate and jboss_fuse'\n+\n+- name: check /system/org/apache/activemq/activemq-camel for activemq-ver\n+  raw: ls -1 \"{{ item }}\"/system/org/apache/activemq/activemq-camel 2>/dev/null | sed -n 's/^.*\\(redhat-[0-9]\\{6\\}\\).*/\\1/p'\n+  register: jboss_fuse_on_karaf_activemq_ver\n+  ignore_errors: yes\n+  with_items: \"{{ karaf_homes }}\"\n+  when: 'jboss_fuse'\n+\n+- name: set the activemq-version fact\n+  set_fact:\n+      fuse_activemq_version: \"{{\n+      (jboss_fuse_activemq_ver.get('stdout_lines', []) +\n+       jboss_fuse_on_karaf_activemq_ver.get('stdout_lines', [])) | unique }}\"\n+  ignore_errors: yes\n+  when: 'jboss_fuse'\n+\n+- name: Use locate to look for cxf-rt-ver\n+  raw: locate cxf-rt| sed -n 's/^.*\\(redhat-[0-9]\\{6\\}\\).*/\\1/p'\n+  register: jboss_fuse_cxf_ver\n+  ignore_errors: yes\n+  when: 'have_locate and jboss_fuse'\n+\n+- name: check /system/org/apache/cxf/cxf-rt-bindings-coloc for cxf-rt\n+  raw: ls -1 \"{{ item }}\"/system/org/apache/cxf/cxf-rt-bindings-coloc 2>/dev/null | sed -n 's/^.*\\(redhat-[0-9]\\{6\\}\\).*/\\1/p'","path":"roles/jboss_fuse_on_karaf/tasks/main.yml","position":53,"original_position":53,"commit_id":"a874e5851ea3434b4d523fba051bbf0a0aca374a","original_commit_id":"a874e5851ea3434b4d523fba051bbf0a0aca374a","user":{"login":"chambridge","id":29379759,"avatar_url":"https://avatars3.githubusercontent.com/u/29379759?v=4","gravatar_id":"","url":"https://api.github.com/users/chambridge","html_url":"https://github.com/chambridge","followers_url":"https://api.github.com/users/chambridge/followers","following_url":"https://api.github.com/users/chambridge/following{/other_user}","gists_url":"https://api.github.com/users/chambridge/gists{/gist_id}","starred_url":"https://api.github.com/users/chambridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chambridge/subscriptions","organizations_url":"https://api.github.com/users/chambridge/orgs","repos_url":"https://api.github.com/users/chambridge/repos","events_url":"https://api.github.com/users/chambridge/events{/privacy}","received_events_url":"https://api.github.com/users/chambridge/received_events","type":"User","site_admin":false},"body":"Based on @noahl bash \"globbing\" identified issue (#1089)\r\nI think this should be:\r\n\r\n`ls -1 '{{ item }}/system/org/apache/cxf/cxf-rt-bindings-coloc' 2>/dev/null`","created_at":"2018-03-23T13:03:51Z","updated_at":"2018-03-23T13:04:17Z","html_url":"https://github.com/quipucords/quipucords/pull/1124#discussion_r176727189","pull_request_url":"https://api.github.com/repos/quipucords/quipucords/pulls/1124","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/comments/176727189"},"html":{"href":"https://github.com/quipucords/quipucords/pull/1124#discussion_r176727189"},"pull_request":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1124"}}},"pull_request":{"url":"https://api.github.com/repos/quipucords/quipucords/pulls/1124","id":176893145,"html_url":"https://github.com/quipucords/quipucords/pull/1124","diff_url":"https://github.com/quipucords/quipucords/pull/1124.diff","patch_url":"https://github.com/quipucords/quipucords/pull/1124.patch","issue_url":"https://api.github.com/repos/quipucords/quipucords/issues/1124","number":1124,"state":"open","locked":false,"title":"Detect fuse version in noninvasive scan. Closes #1012 and #1119","user":{"login":"abaiken","id":34656858,"avatar_url":"https://avatars0.githubusercontent.com/u/34656858?v=4","gravatar_id":"","url":"https://api.github.com/users/abaiken","html_url":"https://github.com/abaiken","followers_url":"https://api.github.com/users/abaiken/followers","following_url":"https://api.github.com/users/abaiken/following{/other_user}","gists_url":"https://api.github.com/users/abaiken/gists{/gist_id}","starred_url":"https://api.github.com/users/abaiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abaiken/subscriptions","organizations_url":"https://api.github.com/users/abaiken/orgs","repos_url":"https://api.github.com/users/abaiken/repos","events_url":"https://api.github.com/users/abaiken/events{/privacy}","received_events_url":"https://api.github.com/users/abaiken/received_events","type":"User","site_admin":false},"body":"The tasks that check actual home directories (eap home/karaf home) include the install directory. The tasks using locate do not. As an example, the inspection endpoint for 10.10.181.147 looks like:\r\n\r\n``` {\r\n                    \"name\": \"jboss_fuse_camel_ver\",\r\n                    \"value\": \"[\\\"redhat-620133\\\", \\\"redhat-630187\\\"]\"\r\n                },\r\n                {\r\n                    \"name\": \"jboss_fuse_on_karaf_camel_ver\",\r\n                    \"value\": \"[{\\\"install_home\\\": \\\"/opt/jbossamq/jboss-a-mq-6.2.0.redhat-133\\\", \\\"version\\\": [\\\"redhat-620133\\\"]}]\"\r\n                },\r\n                {\r\n                    \"name\": \"fuse_camel_version\",\r\n                    \"value\": \"[\\\"redhat-630187\\\", \\\"redhat-620133\\\"]\"\r\n                },\r\n                {\r\n                    \"name\": \"jboss_fuse_activemq_ver\",\r\n                    \"value\": \"[\\\"redhat-620133\\\", \\\"redhat-630187\\\"]\"\r\n                },\r\n                {\r\n                    \"name\": \"jboss_fuse_on_karaf_activemq_ver\",\r\n                    \"value\": \"[{\\\"install_home\\\": \\\"/opt/jbossamq/jboss-a-mq-6.2.0.redhat-133\\\", \\\"version\\\": [\\\"redhat-620133\\\"]}]\"\r\n                },\r\n                {\r\n                    \"name\": \"fuse_activemq_version\",\r\n                    \"value\": \"[\\\"redhat-630187\\\", \\\"redhat-620133\\\"]\"\r\n                },\r\n                {\r\n                    \"name\": \"jboss_fuse_cxf_ver\",\r\n                    \"value\": \"[\\\"redhat-620133\\\", \\\"redhat-630187\\\"]\"\r\n                },\r\n                {\r\n                    \"name\": \"jboss_fuse_on_karaf_cxf_ver\",\r\n                    \"value\": \"[{\\\"install_home\\\": \\\"/opt/jbossamq/jboss-a-mq-6.2.0.redhat-133\\\", \\\"version\\\": [\\\"redhat-620133\\\"]}]\"\r\n                },\r\n                {\r\n                    \"name\": \"fuse_cxf_version\",\r\n                    \"value\": \"[\\\"redhat-630187\\\", \\\"redhat-620133\\”]”\r\n}```\r\n","created_at":"2018-03-22T19:59:02Z","updated_at":"2018-03-23T13:04:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0835d79b400c5dd92916a9e46c78eb30d7ba777b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/quipucords/quipucords/pulls/1124/commits","review_comments_url":"https://api.github.com/repos/quipucords/quipucords/pulls/1124/comments","review_comment_url":"https://api.github.com/repos/quipucords/quipucords/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quipucords/quipucords/issues/1124/comments","statuses_url":"https://api.github.com/repos/quipucords/quipucords/statuses/a874e5851ea3434b4d523fba051bbf0a0aca374a","head":{"label":"quipucords:issues/1012","ref":"issues/1012","sha":"a874e5851ea3434b4d523fba051bbf0a0aca374a","user":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"repo":{"id":94471461,"name":"quipucords","full_name":"quipucords/quipucords","owner":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quipucords/quipucords","description":"A tool for discovery, inspection, collection/deduplication, and reporting on an IT environment","fork":false,"url":"https://api.github.com/repos/quipucords/quipucords","forks_url":"https://api.github.com/repos/quipucords/quipucords/forks","keys_url":"https://api.github.com/repos/quipucords/quipucords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quipucords/quipucords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quipucords/quipucords/teams","hooks_url":"https://api.github.com/repos/quipucords/quipucords/hooks","issue_events_url":"https://api.github.com/repos/quipucords/quipucords/issues/events{/number}","events_url":"https://api.github.com/repos/quipucords/quipucords/events","assignees_url":"https://api.github.com/repos/quipucords/quipucords/assignees{/user}","branches_url":"https://api.github.com/repos/quipucords/quipucords/branches{/branch}","tags_url":"https://api.github.com/repos/quipucords/quipucords/tags","blobs_url":"https://api.github.com/repos/quipucords/quipucords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quipucords/quipucords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quipucords/quipucords/git/refs{/sha}","trees_url":"https://api.github.com/repos/quipucords/quipucords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quipucords/quipucords/statuses/{sha}","languages_url":"https://api.github.com/repos/quipucords/quipucords/languages","stargazers_url":"https://api.github.com/repos/quipucords/quipucords/stargazers","contributors_url":"https://api.github.com/repos/quipucords/quipucords/contributors","subscribers_url":"https://api.github.com/repos/quipucords/quipucords/subscribers","subscription_url":"https://api.github.com/repos/quipucords/quipucords/subscription","commits_url":"https://api.github.com/repos/quipucords/quipucords/commits{/sha}","git_commits_url":"https://api.github.com/repos/quipucords/quipucords/git/commits{/sha}","comments_url":"https://api.github.com/repos/quipucords/quipucords/comments{/number}","issue_comment_url":"https://api.github.com/repos/quipucords/quipucords/issues/comments{/number}","contents_url":"https://api.github.com/repos/quipucords/quipucords/contents/{+path}","compare_url":"https://api.github.com/repos/quipucords/quipucords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quipucords/quipucords/merges","archive_url":"https://api.github.com/repos/quipucords/quipucords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quipucords/quipucords/downloads","issues_url":"https://api.github.com/repos/quipucords/quipucords/issues{/number}","pulls_url":"https://api.github.com/repos/quipucords/quipucords/pulls{/number}","milestones_url":"https://api.github.com/repos/quipucords/quipucords/milestones{/number}","notifications_url":"https://api.github.com/repos/quipucords/quipucords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quipucords/quipucords/labels{/name}","releases_url":"https://api.github.com/repos/quipucords/quipucords/releases{/id}","deployments_url":"https://api.github.com/repos/quipucords/quipucords/deployments","created_at":"2017-06-15T19:19:03Z","updated_at":"2018-03-23T12:47:13Z","pushed_at":"2018-03-23T12:47:15Z","git_url":"git://github.com/quipucords/quipucords.git","ssh_url":"git@github.com:quipucords/quipucords.git","clone_url":"https://github.com/quipucords/quipucords.git","svn_url":"https://github.com/quipucords/quipucords","homepage":"http://quipucords.readthedocs.io/en/latest/","size":2638,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":25,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":8,"open_issues":25,"watchers":12,"default_branch":"master"}},"base":{"label":"quipucords:master","ref":"master","sha":"dea65df85293e85ed88d7a562d9467512e9d2716","user":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"repo":{"id":94471461,"name":"quipucords","full_name":"quipucords/quipucords","owner":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quipucords/quipucords","description":"A tool for discovery, inspection, collection/deduplication, and reporting on an IT environment","fork":false,"url":"https://api.github.com/repos/quipucords/quipucords","forks_url":"https://api.github.com/repos/quipucords/quipucords/forks","keys_url":"https://api.github.com/repos/quipucords/quipucords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quipucords/quipucords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quipucords/quipucords/teams","hooks_url":"https://api.github.com/repos/quipucords/quipucords/hooks","issue_events_url":"https://api.github.com/repos/quipucords/quipucords/issues/events{/number}","events_url":"https://api.github.com/repos/quipucords/quipucords/events","assignees_url":"https://api.github.com/repos/quipucords/quipucords/assignees{/user}","branches_url":"https://api.github.com/repos/quipucords/quipucords/branches{/branch}","tags_url":"https://api.github.com/repos/quipucords/quipucords/tags","blobs_url":"https://api.github.com/repos/quipucords/quipucords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quipucords/quipucords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quipucords/quipucords/git/refs{/sha}","trees_url":"https://api.github.com/repos/quipucords/quipucords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quipucords/quipucords/statuses/{sha}","languages_url":"https://api.github.com/repos/quipucords/quipucords/languages","stargazers_url":"https://api.github.com/repos/quipucords/quipucords/stargazers","contributors_url":"https://api.github.com/repos/quipucords/quipucords/contributors","subscribers_url":"https://api.github.com/repos/quipucords/quipucords/subscribers","subscription_url":"https://api.github.com/repos/quipucords/quipucords/subscription","commits_url":"https://api.github.com/repos/quipucords/quipucords/commits{/sha}","git_commits_url":"https://api.github.com/repos/quipucords/quipucords/git/commits{/sha}","comments_url":"https://api.github.com/repos/quipucords/quipucords/comments{/number}","issue_comment_url":"https://api.github.com/repos/quipucords/quipucords/issues/comments{/number}","contents_url":"https://api.github.com/repos/quipucords/quipucords/contents/{+path}","compare_url":"https://api.github.com/repos/quipucords/quipucords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quipucords/quipucords/merges","archive_url":"https://api.github.com/repos/quipucords/quipucords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quipucords/quipucords/downloads","issues_url":"https://api.github.com/repos/quipucords/quipucords/issues{/number}","pulls_url":"https://api.github.com/repos/quipucords/quipucords/pulls{/number}","milestones_url":"https://api.github.com/repos/quipucords/quipucords/milestones{/number}","notifications_url":"https://api.github.com/repos/quipucords/quipucords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quipucords/quipucords/labels{/name}","releases_url":"https://api.github.com/repos/quipucords/quipucords/releases{/id}","deployments_url":"https://api.github.com/repos/quipucords/quipucords/deployments","created_at":"2017-06-15T19:19:03Z","updated_at":"2018-03-23T12:47:13Z","pushed_at":"2018-03-23T12:47:15Z","git_url":"git://github.com/quipucords/quipucords.git","ssh_url":"git@github.com:quipucords/quipucords.git","clone_url":"https://github.com/quipucords/quipucords.git","svn_url":"https://github.com/quipucords/quipucords","homepage":"http://quipucords.readthedocs.io/en/latest/","size":2638,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":25,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":8,"open_issues":25,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1124"},"html":{"href":"https://github.com/quipucords/quipucords/pull/1124"},"issue":{"href":"https://api.github.com/repos/quipucords/quipucords/issues/1124"},"comments":{"href":"https://api.github.com/repos/quipucords/quipucords/issues/1124/comments"},"review_comments":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1124/comments"},"review_comment":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1124/commits"},"statuses":{"href":"https://api.github.com/repos/quipucords/quipucords/statuses/a874e5851ea3434b4d523fba051bbf0a0aca374a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"chambridge"}}