aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/templates/inxi-system-info.j2
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-06 19:38:41 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-07 07:38:45 +0000
commitfe5def3ef35f207ecb226d864e6dd6fe052a24f9 (patch)
tree0ff016cf459c01c475512a5179e4ebc061a68c5c /tests/integration/templates/inxi-system-info.j2
parentdf16d6dc34f63ae766c95ce3206720715f98b068 (diff)
Integrate reporter
Change-Id: I7b13282dbae576e36c01c959182bc0838b36649e Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/integration/templates/inxi-system-info.j2')
-rw-r--r--tests/integration/templates/inxi-system-info.j216
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/integration/templates/inxi-system-info.j2 b/tests/integration/templates/inxi-system-info.j2
new file mode 100644
index 00000000..35c8661f
--- /dev/null
+++ b/tests/integration/templates/inxi-system-info.j2
@@ -0,0 +1,16 @@
+System Information from inxi
+============================
+
+{% for host in groups['compute'] %}
+{{ hostvars[host].ansible_hostname }}
+-----------------------------
+
+{{ ('CPU Brand', hostvars[host].inxi_info.cpu[0])|justify }}
+{{ ('Disk', hostvars[host].inxi_info.disk[0])|justify }}
+{{ ('Host Name', hostvars[host].inxi_info.hostname[0])|justify }}
+{{ ('Kernel', hostvars[host].inxi_info.kernel[0])|justify }}
+{{ ('Memory', hostvars[host].inxi_info.memory[0])|justify }}
+{{ ('Operating System', hostvars[host].inxi_info.os[0])|justify }}
+{{ ('Product', hostvars[host].inxi_info.product[0])|justify }}
+
+{% endfor %}