Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718
  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.items() %}
  10. {%- if repo.get('enabled', True) %}
  11. - service: apt.repo
  12. host_external: {{ repo.source }}
  13. direction: source
  14. type: tcp-http
  15. {%- endif %}
  16. {%- endfor %}
  17. {%- endif %}
  18. {%- endif %}