mirror of
https://github.com/puppetlabs/infinitory.git
synced 2026-01-26 10:18:41 -05:00
Import SRE inventory code
This commit is contained in:
commit
7364ccbff8
18 changed files with 5348 additions and 0 deletions
29
templates/services.html
Normal file
29
templates/services.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block title %}Service inventory{% endblock %}
|
||||
{% block body %}
|
||||
<h1>Service inventory</h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Service</th>
|
||||
<th>Nodes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for service in services %}
|
||||
<tr id="{{ service }}">
|
||||
<th>
|
||||
<a href="./{{ service["class_name"] }}.html">{{ service["human_name"] }}</a>
|
||||
</th>
|
||||
<td>
|
||||
<ul>
|
||||
{% for node in service["nodes"] | sort(attribute="facts.fqdn") %}
|
||||
<li><a href="../nodes/{{ node["certname"] }}.html">{{ node["facts"]["fqdn"] }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue