diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-11 15:35:45 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-11 15:35:45 +0800 |
commit | 5bdc99ef0f7897b7ea7e62b9db733e8cbf7adaa8 (patch) | |
tree | dc311f8d19a3c216eb458bc22a5553a169887a04 /tests/integration/templates/system-info.j2 | |
parent | 9bbcdcb1333b510d86c944f0ae6ac1e78837df87 (diff) |
Normalize system info variables and report
Change-Id: I5627b4e2fa2287a1880433c7f25d9a2d1874cc26
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/integration/templates/system-info.j2')
-rw-r--r-- | tests/integration/templates/system-info.j2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/integration/templates/system-info.j2 b/tests/integration/templates/system-info.j2 new file mode 100644 index 00000000..305a2af2 --- /dev/null +++ b/tests/integration/templates/system-info.j2 @@ -0,0 +1,16 @@ +System Information from inxi +============================ + +{% for host in groups['compute'] %} +{{ hostvars[host].ansible_hostname }} +----------------------------- + +{{ ('CPU Brand', hostvars[host].system_info.cpu[0])|justify }} +{{ ('Disk', hostvars[host].system_info.disk[0])|justify }} +{{ ('Host Name', hostvars[host].system_info.hostname[0])|justify }} +{{ ('Kernel', hostvars[host].system_info.kernel[0])|justify }} +{{ ('Memory', hostvars[host].system_info.memory[0])|justify }} +{{ ('Operating System', hostvars[host].system_info.os[0])|justify }} +{{ ('Product', hostvars[host].system_info.product[0])|justify }} + +{% endfor %} |