![Sorin Sbarnea](/assets/img/avatar_default.png)
* bump linters * sort newly identified rule violations * fixes sanity by correcting missing excludes from galaxy.yml file * fix incorrect pinning of python version in tox.ini Change-Id: Iba0cecfc46a97d0ee56e30e48638f3a1b37bdec5
70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
---
|
|
- name: Get ARA json data
|
|
shell: | # noqa 305
|
|
{{ local_working_dir }}/bin/ara result list --all -f json
|
|
register: ara_data
|
|
no_log: true
|
|
changed_when: false
|
|
|
|
- name: Collect and send data to InfluxDB
|
|
ara_influxdb:
|
|
influxdb_url: "{{ influxdb_url|default('') }}"
|
|
influxdb_port: "{{ influxdb_port }}"
|
|
influxdb_user: "{{ influxdb_user }}"
|
|
influxdb_password: "{{ influxdb_password }}"
|
|
influxdb_db: "{{ influxdb_dbname }}"
|
|
ara_data: "{{ ara_data.stdout|to_json }}"
|
|
measurement: "{{ influxdb_measurement }}"
|
|
data_file: "{{ influxdb_data_file_path }}"
|
|
only_successful_tasks: "{{ influxdb_only_successful_tasks }}"
|
|
no_log: true
|
|
|
|
- name: Get ARA json data for undercloud
|
|
become: true
|
|
shell: "{{ local_working_dir }}/bin/ara result list --all -f json" # noqa 305
|
|
register: ara_root_data
|
|
no_log: true
|
|
changed_when: false
|
|
|
|
- name: Collect and send data to InfluxDB
|
|
ara_influxdb:
|
|
influxdb_url: "{{ influxdb_url|default('') }}"
|
|
influxdb_port: "{{ influxdb_port }}"
|
|
influxdb_user: "{{ influxdb_user }}"
|
|
influxdb_password: "{{ influxdb_password }}"
|
|
influxdb_db: "{{ influxdb_dbname }}"
|
|
ara_data: "{{ ara_root_data.stdout|to_json }}"
|
|
measurement: "undercloud"
|
|
data_file: "{{ influxdb_data_file_path }}"
|
|
only_successful_tasks: "{{ influxdb_only_successful_tasks }}"
|
|
mapped_fields: false
|
|
standard_fields: false
|
|
longest_tasks: 15
|
|
when: ara_root_data.stdout != "[]"
|
|
no_log: true
|
|
|
|
- name: Get ARA json data for overcloud
|
|
shell: "{{ local_working_dir }}/bin/ara result list --all -f json" # noqa 305
|
|
register: ara_oc_data
|
|
environment:
|
|
ARA_DATABASE: 'sqlite:///{{ ara_overcloud_db_path }}'
|
|
no_log: true
|
|
changed_when: false
|
|
|
|
- name: Collect and send data to InfluxDB
|
|
ara_influxdb:
|
|
influxdb_url: "{{ influxdb_url|default('') }}"
|
|
influxdb_port: "{{ influxdb_port }}"
|
|
influxdb_user: "{{ influxdb_user }}"
|
|
influxdb_password: "{{ influxdb_password }}"
|
|
influxdb_db: "{{ influxdb_dbname }}"
|
|
ara_data: "{{ ara_oc_data.stdout|to_json }}"
|
|
measurement: "overcloud"
|
|
data_file: "{{ influxdb_data_file_path }}"
|
|
only_successful_tasks: "{{ influxdb_only_successful_tasks }}"
|
|
mapped_fields: false
|
|
standard_fields: false
|
|
longest_tasks: 15
|
|
when: ara_oc_data.stdout != "[]"
|
|
no_log: true
|