Saltstack Official Linux Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20 rindas
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 -%}