Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Db queries multiple files #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions yml/roles/alfresco-db-queries/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
state: directory
path: "{{ hc_tmp }}"

- name: Install oracle driver
command: mvn install:install-file -Dfile={{inventory_dir}}/alfresco-db-queries/lib/ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar
register: mvn_install_oracle

# Compile only on the control node
- name: Compile Alfresco DB Queries tool
local_action: command mvn -f {{inventory_dir}}/alfresco-db-queries/ clean compile install
register: mvn_result

- name: Send Alfresco DB queries tool
copy:
src: "{{lookup('first_found', jarloc)}}"
Expand Down Expand Up @@ -38,9 +47,15 @@
url: http://localhost:{{ alfresco_db_queries_port }}/report
timeout: "{{ db_queries_report_timeout }}"

- name: Zip Alfresco-db-queries files
become: true
archive:
path: "{{ hc_tmp }}/acs-db-report*"
dest: "{{ hc_tmp }}/alfresco-db-reports.zip"
format: zip

- name: Fetch DB queries report
fetch:
src: "{{ hc_tmp }}/acs-db-report.csv"
src: "{{ hc_tmp }}/alfresco-db-reports.zip"
dest: ../assets/
flat: yes

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ alf_auth_status={% if srv_info.json.data.version | regex_search('[0-9]+(\.[0-9]+
largeFolderSize=1000
largeTransactionSize=10000

# While exporting generate one single file or one file per query. Valid values: true or false
reportSplit=true

# Export type. Valid values: csv or json or txt. Default txt
reportExportType=csv

# Generate a report on the same folder where the application is run
reportFile=acs-db-report.csv

Expand Down