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.

preferences_repo 563B

9 years ago
12345678910111213141516171819
  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 -%}