94d7d42f14
This updated branch fixes a few issues and should ensure display with pcp-dstat (I9234b226242f145db9c235797649202aa530ec74) Add an override so we pull it Change-Id: I0d5e1b567c364a9e6c7aa0b95de17abffaef0434
35 lines
857 B
YAML
35 lines
857 B
YAML
- name: Check for cached dstat_graph
|
|
stat:
|
|
path: "{{ dstat_graph_cache_path }}"
|
|
register: dstat_cache
|
|
|
|
- name: Set dstat_graph path
|
|
when: >
|
|
dstat_cache.stat.exists and not
|
|
dstat_graph_cache_ignore
|
|
set_fact:
|
|
dstat_path: "{{ dstat_graph_cache_path }}"
|
|
|
|
- name: Set dstat_graph path
|
|
when: >
|
|
not dstat_cache.stat.exists or
|
|
dstat_graph_cache_ignore
|
|
set_fact:
|
|
dstat_path: "{{ dstat_graph_download_path }}"
|
|
|
|
- name: Run dstat_graph
|
|
when: dstat_path is defined
|
|
shell: "./generate_page.sh {{ dstat_data_path }} > {{ ansible_user_dir }}/zuul-output/logs/dstat.html"
|
|
args:
|
|
chdir: "{{ dstat_path }}"
|
|
|
|
- name: Return dstat artifact to Zuul
|
|
zuul_return:
|
|
data:
|
|
zuul:
|
|
artifacts:
|
|
- name: "Dstat graph"
|
|
url: "dstat.html"
|
|
metadata:
|
|
type: dstat_graph
|