|
|
|
|
|
|
|
|
{%- set repoarch = salt['grains.get']('osarch') %} |
|
|
{%- set repoarch = salt['grains.get']('osarch') %} |
|
|
{%- set osrelease = salt['grains.get']('osrelease', '') %} |
|
|
{%- set osrelease = salt['grains.get']('osrelease', '') %} |
|
|
{%- set salt_release = salt['pillar.get']('salt:release', 'latest') %} |
|
|
{%- set salt_release = salt['pillar.get']('salt:release', 'latest') %} |
|
|
{%- if salt_release != "latest" %} |
|
|
|
|
|
{%- set salt_release_major = salt_release.split('.') | map('.') | list | first %} |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
{%- if salt_release.split('.')|length >= 3 %} |
|
|
{%- if salt_release.split('.')|length >= 3 %} |
|
|
{%- set salt_release = 'archive/' ~ salt_release %} |
|
|
{%- set salt_release = 'archive/' ~ salt_release %} |
|
|
{%- endif %} |
|
|
{%- endif %} |