瀏覽代碼

Merge pull request #108 from salt-formulas/meta

Graph metadata
pull/110/head
Jakub Pavlik 7 年之前
父節點
當前提交
358426780a
共有 1 個檔案被更改,包括 16 行新增0 行删除
  1. +16
    -0
      linux/meta/meta.yml

+ 16
- 0
linux/meta/meta.yml 查看文件

@@ -0,0 +1,16 @@
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.iteritems() %}
- service: apt.repo
host_external: {{ repo.source }}
direction: source
type: tcp-http
{%- endfor %}
{%- endif %}
{%- endif %}

Loading…
取消
儲存