browbeat/ansible/check/templates/bug_report.j2
Joe 67d62ffbd2 Implement Suggestions
JohnH from Red Hat has suggestions for the Browbeat Checks. I have
attempted to implement his suggestions with this commit.

Change-Id: I7d99e354c5b87b778e5d2f56f1cbf7df021592f9
2016-08-31 15:14:25 -04:00

50 lines
1.6 KiB
Django/Jinja

# Browbeat generated bug report
{% for host in groups['undercloud'] %}
---------------------------------------
| Issues for host : {{ host }}
---------------------------------------
{% for check in hostvars[host]['checks'] %}
{% if hostvars[host][check]['failed'] == true %}
Bug: {{ check }}
Description: {{ hostvars[host]['checks'][check]['description'] }}
URL: {{ hostvars[host]['checks'][check]['url'] }}
Severity: {{ hostvars[host]['checks'][check]['severity'] }}
Impact: {{ hostvars[host]['checks'][check]['impact'] }}
{% endif %}
{% endfor %}
{% endfor %}
{% for host in groups['controller'] %}
---------------------------------------
| Issues for host : {{ host }}
---------------------------------------
{% for check in hostvars[host]['checks'] %}
{% if hostvars[host][check]['failed'] == true %}
Bug: {{ check }}
Description: {{ hostvars[host]['checks'][check]['description'] }}
URL: {{ hostvars[host]['checks'][check]['url'] }}
Severity: {{ hostvars[host]['checks'][check]['severity'] }}
Impact: {{ hostvars[host]['checks'][check]['impact'] }}
{% endif %}
{% endfor %}
{% endfor %}
{% for host in groups['compute'] %}
---------------------------------------
| Issues for host : {{ host }}
---------------------------------------
{% for check in hostvars[host]['checks'] %}
{% if hostvars[host][check]['failed'] == true %}
Bug: {{ check }}
Description: {{ hostvars[host]['checks'][check]['description'] }}
URL: {{ hostvars[host]['checks'][check]['url'] }}
Severity: {{ hostvars[host]['checks'][check]['severity'] }}
Impact: {{ hostvars[host]['checks'][check]['impact'] }}
{% endif %}
{% endfor %}
{% endfor %}