This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
forked from candlepin/rho
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add two new facts to use 'find' to locate JBoss Fuse if the user requests it. Also rename some old facts whose names implied they would find JBoss Fuse but would in fact not.
- Loading branch information
Noah Lavine
committed
Dec 7, 2017
1 parent
38da7f8
commit 85149b1
Showing
6 changed files
with
85 additions
and
19 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
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