graph: {%- if pillar.get('linux', {}).system is defined %} {%- from "linux/map.jinja" import system with context %} - host: {{ grains.id }} service: linux.system type: software-system relations: {%- if system.repo is defined %} {%- for repo_name, repo in system.repo.items() %} {%- if repo.get('enabled', True) %} - service: apt.repo host_external: {{ repo.source }} direction: source type: tcp-http {%- endif %} {%- endfor %} {%- endif %} {%- endif %}