6622d177bf
SaltStack provides "versioned" repositories, this commit add a way to set which release of salt to use. It adds a pillar "salt:release" which can be set to a specific release (ex: 2016.11). This release is then used to configure properly the repositories URLs for Debian/Ubuntu/RedHat. The default behavior is to point to 'latest', retaining the previous behavior if the "salt:release" pillar is not set.
10 lines
281 B
Plaintext
10 lines
281 B
Plaintext
{% from "salt/map.jinja" import salt_settings with context %}
|
|
|
|
saltstack-pkgrepo:
|
|
pkgrepo.managed:
|
|
- humanname: SaltStack repo for RHEL/CentOS $releasever
|
|
- baseurl: {{ salt_settings.pkgrepo }}
|
|
- enabled: 1
|
|
- gpgcheck: 1
|
|
- gpgkey: {{ salt_settings.key_url }}
|