Saltstack Official Salt Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

12345678910111213141516171819202122
  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 %}