summaryrefslogtreecommitdiffstats
path: root/templates/host.dokuwiki
blob: f377ac8db063241522f444d068051b94ddbc38d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{# {% extends 'layout.html' %}

{% block title %}{{hostname}}{% endblock %} #}

{% block content %}
====== {{hostname|replace('.spline.inf.fu-berlin.de', '')}} ======

{{description}}

===== Summary =====

* **hostname:** {{hostname}}
* **os:** {{os|default('unknown')}}
* **arch:** {{arch|default('unknonw')}}
{% if vserver %}
* **vserver:** {{vserver}}
{% endif %}
{% if vserver_host %}
* **vserver host:** {{vserver_host}}
{% endif %}
{% if maintainers is iterable %}
* **maintainers:**
{% for maintainer in maintainers %}
{% set name, mail = get_contact_info(maintainer) %}
  * [[mailto:{{mail}}|{{name}}]]
{% endfor %}
{% endif %}
{% if groups is defined %}
* **bcfg2-groups:**
{% for group in groups %}
  * {{group}}
{% endfor %}

( [[https://bcfg2.spline.de/client/{{hostname}}|view client in bcfg2]] )
{% endif %}


===== network interfaces =====

{% for group in addresses | select_with_attribute('vserver', False) | groupby('interface') %}
* **{{ group.grouper }}**
{% for address in group.list %}
  * {{address['address']}}/{{address['netmask']}}
{% else %}
  * no address
{% endfor %}
{% else %}
No network interfaces configured.
{% endfor %}


===== open ports =====

{% if ports is iterable %}
^ Port ^ IP ^ Process ^ Protocol ^
{% for port in ports %}
| {{port['port']}} | {{port['ip']}} | {{port['process']}} | {{port['proto']}} |
{% endfor %}
{% else %} No open ports
{% endif %}

===== services =====


{% if services is iterable %}
^ Name ^ Port ^ Visibility ^
{% for service_category in services %}
{% if services[service_category] is iterable %}
{% for service in services[service_category] %}
| {% if service is string %} {{service}} {% else %} {{service.items()[0][0]}} {% endif %} | {% if service is string %} default {% else %} {{service.items()[0][1]}} {% endif %} | {{service_category}} |
{% endfor %}
{% endif %}
{% else %}
no services provoided
{% endfor %}
{% endif %}

{% endblock %}