This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
forked from candlepin/rho
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from /issues/284
Add facts to find JBoss Fuse
- Loading branch information
Showing
7 changed files
with
91 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
|
||
--- | ||
# This will scan linux systems for JBoss Fuse, ActiveMQ, CXF, Camel or Community Installations | ||
- name: Gather jboss.fuse.activemq-ver | ||
- name: Gather jboss.activemq-ver | ||
raw: FOUND=""; for jar in `find {{scan_dirs}} -type f -xdev -name \*activemq-\*redhat\*.jar 2>/dev/null | sed -n 's/.*\(redhat-[0-9]\{6\}\).*/\1/p' | sort -u`; do if [ ! -z "${jar}" ]; then if [ ! -z "$FOUND" ]; then FOUND="$FOUND; $jar"; else FOUND=${jar}; fi; fi; done; echo ${FOUND} | ||
register: jboss.fuse.activemq-ver | ||
register: jboss.activemq-ver | ||
ignore_errors: yes | ||
when: '"jboss.fuse.activemq-ver" in facts_to_collect' | ||
when: '"jboss.activemq-ver" in facts_to_collect' | ||
|
||
- name: Gather jboss.fuse.camel-ver | ||
- name: Gather jboss.camel-ver | ||
raw: FOUND=""; for jar in `find {{scan_dirs}} -type f -xdev -name \*camel-core\*redhat\*.jar 2>/dev/null | sed -n 's/.*\(redhat-[0-9]\{6\}\).*/\1/p' | sort -u`; do if [ ! -z "${jar}" ]; then if [ ! -z "$FOUND" ]; then FOUND="$FOUND; $jar"; else FOUND=${jar}; fi; fi; done; echo ${FOUND} | ||
register: jboss.fuse.camel-ver | ||
register: jboss.camel-ver | ||
ignore_errors: yes | ||
when: '"jboss.fuse.camel-ver" in facts_to_collect' | ||
when: '"jboss.camel-ver" in facts_to_collect' | ||
|
||
- name: Gather jboss.fuse.cxf-ver | ||
- name: Gather jboss.cxf-ver | ||
raw: FOUND=""; for jar in `find {{scan_dirs}} -type f -xdev -name \*cxf-rt\*redhat\*.jar 2>/dev/null | sed -n 's/.*\(redhat-[0-9]\{6\}\).*/\1/p' | sort -u`; do if [ ! -z "${jar}" ]; then if [ ! -z "$FOUND" ]; then FOUND="$FOUND; $jar"; else FOUND=${jar}; fi; fi; done; echo ${FOUND} | ||
register: jboss.fuse.cxf-ver | ||
register: jboss.cxf-ver | ||
ignore_errors: yes | ||
when: '"jboss.fuse.cxf-ver" in facts_to_collect' | ||
when: '"jboss.cxf-ver" in facts_to_collect' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters