Saltstack Official Salt Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

23 lines
873B

  1. {%- set tplroot = tpldir.split('/')[0] %}
  2. {%- from tplroot ~ "/map.jinja" import salt_settings with context %}
  3. {% if salt_settings.pin_version and salt_settings.version and grains.os_family|lower == 'debian' %}
  4. salt-pin-version:
  5. file.managed:
  6. - name: /etc/apt/preferences.d/salt
  7. - contents: |
  8. # This file managed by Salt, do not edit by hand!!
  9. Package: salt*
  10. Pin: version {{ salt_settings.version }}
  11. Pin-Priority: 1000
  12. # Order: 2 because we can't put a require_in on "pkg: salt-{master,minion}"
  13. # because we don't know if they are used, and 'order: 1' already occupied by salt-pkgrepo
  14. - order: 2
  15. {% elif grains.os_family|lower != 'debian' %}
  16. salt-pin-version:
  17. test.show_notification:
  18. - name: Available on Debian family OS-es only
  19. - text: Apt pinning available only on Debian based distributives
  20. {% endif %}