doc_infra/template/debian.rst.j2
Michaël Ricart 4aef2d63ef
All checks were successful
/ test (push) Successful in 13s
[DEBIAN] fix DNS template
2025-02-28 11:03:49 +01:00

40 lines
1.5 KiB
Django/Jinja

{% include "base.rst.j2" %}
network
-------
ip
##
========= ==============
interface adresses
========= =============={% for interface in ip %}
{{ "{:<10}".format(interface["ifname"]) }} {% for ip in interface["addr_info"] %} {% if interface["addr_info"].index(ip) != 0 %} {% endif %}{{ ip["local"] }}/{{ ip["prefixlen"]}}
{% endfor %}{% endfor %}========= ==============
routes
######
============ =============== =============== ==============
destination netmask gateway interface
============ =============== =============== =============={% for route in routes %}
{{ "{:<12}".format(route["destination"]) }} {{ "{:<15}".format(route["genmask"]) }} {{ "{:<15}".format(route["gateway"]) }} {{ route["iface"] }}{% endfor %}
============ =============== =============== ==============
{% if resolvconf %}DNS
###
{{ "{}".format(resolvconf["nameserver"]) }}{% endif %}
services
--------
.. table:: services
:class: sphinx-datatable
================================================== ==================== ==============
service state description
================================================== ==================== =============={% for svc in services %}
{{ "{:<50}".format(svc["unit"][:49]) }} {{ "{:<20}".format(svc["sub"].replace("running",":green:`running`").replace("failed", ":red:`failed`")) }} {{ svc["description"] }}{% endfor %}
================================================== ==================== ==============