mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-28 02:57:50 +01:00
Merge pull request #394 from myii/PR_364-archive-dir-for-minor-release
Fix `repo.saltstack.com` URLs for pinned minor release (#364)
This commit is contained in:
commit
44b06d70b7
@ -41,6 +41,12 @@ that differ from whats in defaults.yaml
|
||||
##}
|
||||
{% set osrelease = salt['grains.get']('osrelease') %}
|
||||
{% set salt_release = salt['pillar.get']('salt:release', 'latest') %}
|
||||
|
||||
{# All minor releases appear in an `archive` sub-directory #}
|
||||
{% if salt_release.split('.')|length >= 3 %}
|
||||
{% set salt_release = 'archive/' ~ salt_release %}
|
||||
{% endif %}
|
||||
|
||||
{% set os_family_map = salt['grains.filter_by']({
|
||||
'Debian': {
|
||||
'pkgrepo': 'deb http://repo.saltstack.com/apt/' +
|
||||
|
Loading…
Reference in New Issue
Block a user