From 102da120671f339eefd97048c7f6ce6478b55ce0 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 4 May 2018 12:14:25 +0200 Subject: Bootstrapped inventory system --- templates/inventory/host_info_report.mustache | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 templates/inventory/host_info_report.mustache (limited to 'templates') diff --git a/templates/inventory/host_info_report.mustache b/templates/inventory/host_info_report.mustache new file mode 100644 index 0000000..bc125de --- /dev/null +++ b/templates/inventory/host_info_report.mustache @@ -0,0 +1,49 @@ +# Host Information +Generated: {{vars.sys.date}} + +## Identity +Fully Qualified Hostname: {{vars.sys.fqhost}} +Host ID: {{vars.sys.key_digest}} + +## CFEngine +Version: CFEngine {{#classes.enterprise}}Enterprise{{/classes.enterprise}} {{vars.sys.cf_version}} +Last Agent Run: {{vars.host_info_report_cfengine.last_agent_run}} +Policy Release ID: {{vars.host_info_report_cfengine.cf_promises_release_id.releaseId}} +Policy Last Updated: {{vars.host_info_report_cfengine.cf_promises_validated_timestamp_formatted}} +Bootstrapped to: {{vars.sys.policy_hub}} + +## OS +Architecture: {{vars.sys.arch}} +Os: {{vars.sys.os}} +Release: {{vars.sys.release}} +Flavor: {{vars.sys.flavor}} +Version: {{vars.sys.version}} +Uptime: {{vars.sys.uptime}} minutes + +## Hardware +No. CPUs: {{vars.sys.cpus}} +Total Memory: {{{vars.mon.value_mem_total}}} MB +Total Swap: {{{vars.mon.value_mem_swap}}} MB +Free Memory: {{{vars.mon.value_mem_free}}} MB +Free Swap: {{{vars.mon.value_mem_freeswap}}} MB + +## Network + +### Interfaces +{{#vars.host_info_report_cfengine.interface_info}} + * {{.}} +{{/vars.host_info_report_cfengine.interface_info}} + +{{! Redmine:4506 https://cfengine.com/dev/issues/4506 }} +### IPv4 TCP Ports listening +{{#vars.mon.listening_tcp4_ports}} + * {{.}} +{{/vars.mon.listening_tcp4_ports}} + +{{#classes.show_software}} +{{! Redmine:4507 https://cfengine.com/dev/issues/4507 }} +## Software +{{#vars.host_info_report_software.packages}} +[{{method}}] {{name}}: version {{version}}, arch {{arch}} +{{/vars.host_info_report_software.packages}} +{{/classes.show_software}} -- cgit v1.2.3