cace404431
Change-Id: I113c571ffddb241b29b1394e181ed0145b3c1e04
19 lines
663 B
YAML
19 lines
663 B
YAML
- name: Generate statistics
|
|
shell:
|
|
executable: /bin/bash
|
|
cmd: |
|
|
source {{ devstack_conf_dir }}/stackrc
|
|
source {{ devstack_conf_dir }}/inc/python
|
|
setup_devstack_virtualenv
|
|
$PYTHON {{ devstack_conf_dir }}/tools/get-stats.py \
|
|
--db-user="$DATABASE_USER" \
|
|
--db-pass="$DATABASE_PASSWORD" \
|
|
--db-host="$DATABASE_HOST" \
|
|
{{ apache_logs }} > {{ stage_dir }}/performance.json
|
|
vars:
|
|
apache_logs: >-
|
|
{% for i in debian_suse_apache_deref_logs.results | default([]) + redhat_apache_deref_logs.results | default([]) %}
|
|
--apache-log="{{ i.stat.path }}"
|
|
{% endfor %}
|
|
ignore_errors: yes
|