Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
436B

  1. graph:
  2. {%- if pillar.get('linux', {}).system is defined %}
  3. {%- from "linux/map.jinja" import system with context %}
  4. - host: {{ grains.id }}
  5. service: linux.system
  6. type: software-system
  7. relations:
  8. {%- if system.repo is defined %}
  9. {%- for repo_name, repo in system.repo.iteritems() %}
  10. - service: apt.repo
  11. host_external: {{ repo.source }}
  12. direction: source
  13. type: tcp-http
  14. {%- endfor %}
  15. {%- endif %}
  16. {%- endif %}