Remove special handling of common services and refactor getting service attributes
This commit is contained in:
parent
0347efcb38
commit
ff92241ddb
13 changed files with 92 additions and 49 deletions
templates
|
@ -18,6 +18,13 @@ external: {
|
|||
{% for host in hosts %}
|
||||
{{ host.key }}: {
|
||||
}
|
||||
|
||||
{{ host.key }}.backup -> external.restic {
|
||||
style: {
|
||||
stroke: "#0f0"
|
||||
stroke-dash: 3
|
||||
}
|
||||
}
|
||||
{% endfor %}{# host #}
|
||||
|
||||
{% for svc in svcs %}
|
||||
|
@ -29,7 +36,7 @@ external: {
|
|||
}
|
||||
|
||||
{% for backup in svc.backup or [] %}
|
||||
{{ svc.key }} -> external.restic.{{ svc.host }}: {{ backup.name }} {
|
||||
{{ svc.key }} -> {{ svc.host_key }}.backup: {{ backup.name }} {
|
||||
style: {
|
||||
stroke: "#0f0"
|
||||
stroke-dash: 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue