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

20 行
563B

  1. {%- from "linux/map.jinja" import system with context -%}
  2. {%- set repo = system.repo[repo_name] -%}
  3. {%- if repo.pinning is defined -%}
  4. {%- for id,pin in repo.pinning|dictsort -%}
  5. {% if pin.get('enabled', False) %}
  6. Package: {{ pin.get('package','*') }}
  7. Pin: {{ pin.pin }}
  8. Pin-Priority: {{ pin.priority }}
  9. {%- endif %}
  10. {%- endfor -%}
  11. {%- elif repo.pin is defined -%}
  12. {%- for pin in repo.pin -%}
  13. {%- set package = pin.get('package', '*') %}
  14. Package: {{ package }}
  15. Pin: {{ pin.pin }}
  16. Pin-Priority: {{ pin.priority }}
  17. {%- endfor %}
  18. {%- endif -%}