Reduce connections in diagram

This commit is contained in:
Tobias Reisinger 2025-01-09 19:49:06 +01:00
parent 4608081fba
commit d6c2dd419a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 35 additions and 34 deletions

View file

@ -15,16 +15,25 @@ external: {
}
}
{% for host in hosts %}
{{ host.key }}: {
}
{{ host.key }}.backup -> external.restic {
style: {
stroke: "#0f0"
stroke-dash: 3
classes: {
zero_grid: {
grid-columns: 3
grid-gap: 0
}
monitored: {
style: {
fill: "#1E9025"
}
}
backup: {
style: {
fill: "#0f0"
}
}
}
{% for host in hosts %}
{{ host.key }}
{% endfor %}{# host #}
{% for svc in svcs %}
@ -36,32 +45,25 @@ external: {
}
{% for backup in svc.backup or [] %}
{{ svc.key }} -> {{ svc.host_key }}.backup: {{ backup.name }} {
style: {
stroke: "#0f0"
stroke-dash: 3
}
}
{% endfor %}{# backup #}
{{ svc.key }}.'{{ backup.name }}'.class: backup
{% endfor %}
{% if svc.monitoring %}
{{ monitoring_key }} -> {{ svc.key }}: {
style.stroke: "#1E9025"
}
{{ svc.key }}.monitored.class: monitored
{% endif %}
{% if svc.database %}
{{ svc.key }} -> {{ db_key }}: {
style.stroke: "#336791"
}
{{ db_key }}.{{ svc.name }}
{{ db_subkey }}.{{ svc.name }}
{% endif %}
{% if svc.auth %}
{{ svc.key }} -> {{ auth_key }}: {
style.stroke: "#FD4B2D"
}
{{ auth_key }}.{{ svc.name }}
{{ auth_subkey }}.{{ svc.name }}
{% endif %}
{% if svc.s3 %}
@ -78,14 +80,11 @@ external.scaleway.s3.{{ svc.name }}
{{ svc.key }} -> {{ mail_key }}: {
style.stroke: "#C9B81F"
}
{{ mail_key }}.{{ svc.name }}
{{ mail_subkey }}.{{ svc.name }}
{% endif %}
{% endfor %}{# svc #}
{% for svc in grid_svcs %}
{{ svc }}: {
grid-columns: 3
grid-gap: 0
}
{{ svc }}.class: zero_grid
{% endfor %}