Procházet zdrojové kódy

Merge pull request #498 from major0/feat/select_salt_repo_url

feat: allow selecting alternate salt package repositories
tags/v1.8.0
Imran Iqbal před 3 roky
rodič
revize
d35f43bb8e
Žádný účet není propojen s e-mailovou adresou tvůrce revize
19 změnil soubory, kde provedl 32 přidání a 26 odebrání
  1. +4
    -0
      pillar.example
  2. +5
    -4
      salt/osfamilymap.yaml
  3. +7
    -6
      salt/osmap.yaml
  4. +1
    -1
      test/integration/v3000-py2/files/_mapdata/ubuntu-16.yaml
  5. +1
    -1
      test/integration/v3000-py2/files/_mapdata/ubuntu-18.yaml
  6. +1
    -1
      test/integration/v3000-py3/files/_mapdata/debian-10.yaml
  7. +1
    -1
      test/integration/v3000-py3/files/_mapdata/debian-9.yaml
  8. +1
    -1
      test/integration/v3000-py3/files/_mapdata/ubuntu-16.yaml
  9. +1
    -1
      test/integration/v3000-py3/files/_mapdata/ubuntu-18.yaml
  10. +1
    -1
      test/integration/v3001-py3/files/_mapdata/debian-10.yaml
  11. +1
    -1
      test/integration/v3001-py3/files/_mapdata/debian-9.yaml
  12. +1
    -1
      test/integration/v3001-py3/files/_mapdata/ubuntu-16.yaml
  13. +1
    -1
      test/integration/v3001-py3/files/_mapdata/ubuntu-18.yaml
  14. +1
    -1
      test/integration/v3001-py3/files/_mapdata/ubuntu-20.yaml
  15. +1
    -1
      test/integration/v3002-py3/files/_mapdata/debian-10.yaml
  16. +1
    -1
      test/integration/v3002-py3/files/_mapdata/debian-9.yaml
  17. +1
    -1
      test/integration/v3002-py3/files/_mapdata/ubuntu-16.yaml
  18. +1
    -1
      test/integration/v3002-py3/files/_mapdata/ubuntu-18.yaml
  19. +1
    -1
      test/integration/v3002-py3/files/_mapdata/ubuntu-20.yaml

+ 4
- 0
pillar.example Zobrazit soubor

salt_ssh: 'salt-ssh' salt_ssh: 'salt-ssh'
pyinotify: 'python-pyinotify' # the package to be installed for pyinotify pyinotify: 'python-pyinotify' # the package to be installed for pyinotify


# Set which salt repository to use, default to https://repo.saltstack.com
# For older releases use https://archive.repo.saltproject.io
repo: 'https://archive.repo.saltproject.io'

# Set which release of SaltStack to use, default to 'latest' # Set which release of SaltStack to use, default to 'latest'
# To get the available releases: # To get the available releases:
# * http://repo.saltstack.com/yum/redhat/7/x86_64/ # * http://repo.saltstack.com/yum/redhat/7/x86_64/

+ 5
- 4
salt/osfamilymap.yaml Zobrazit soubor

{%- set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %} {%- set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
{%- set oscodename = salt['grains.get']('oscodename') %} {%- set oscodename = salt['grains.get']('oscodename') %}
{%- set opensuse_repo_suffix = 'Leap_' ~ osrelease if salt['grains.get']('osfinger', '') == 'Leap-15' else 'Tumbleweed' %} {%- set opensuse_repo_suffix = 'Leap_' ~ osrelease if salt['grains.get']('osfinger', '') == 'Leap-15' else 'Tumbleweed' %}
{%- set salt_repo = salt['pillar.get']('salt:repo', 'https://repo.saltstack.com') %}


#from template-formula #from template-formula
{%- if grains.os_family == 'MacOS' %} {%- if grains.os_family == 'MacOS' %}




Debian: Debian:
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
key_url: 'https://repo.saltstack.com/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pkgrepo: 'deb {{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
key_url: '{{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
libgit2: libgit2-22 libgit2: libgit2-22
pyinotify: python-pyinotify pyinotify: python-pyinotify
gitfs: gitfs:
RedHat: RedHat:
pkgrepo_name: saltstack pkgrepo_name: saltstack
pkgrepo_humanname: SaltStack repo for RHEL/CentOS $releasever pkgrepo_humanname: SaltStack repo for RHEL/CentOS $releasever
pkgrepo: 'https://repo.saltstack.com/{{ py_ver_repr or 'yum' }}/redhat/$releasever/$basearch/{{ salt_release }}'
key_url: 'https://repo.saltstack.com/{{ py_ver_repr or 'yum' }}/redhat/$releasever/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pkgrepo: '{{ salt_repo }}/{{ py_ver_repr or 'yum' }}/redhat/$releasever/$basearch/{{ salt_release }}'
key_url: '{{ salt_repo }}/{{ py_ver_repr or 'yum' }}/redhat/$releasever/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pygit2: python-pygit2 pygit2: python-pygit2
python_git: GitPython python_git: GitPython
gitfs: gitfs:

+ 7
- 6
salt/osmap.yaml Zobrazit soubor

{% set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %} {% set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
{% set oscodename = salt['grains.get']('oscodename') %} {% set oscodename = salt['grains.get']('oscodename') %}
{% set os_family_lower = salt['grains.get']('os_family')|lower %} {% set os_family_lower = salt['grains.get']('os_family')|lower %}
{% set salt_repo = salt['pillar.get']('salt:repo', 'https://repo.saltstack.com') %}


Fedora: Fedora:
pygit2: python2-pygit2 pygit2: python2-pygit2
Amazon: Amazon:
pkgrepo_name: saltstack-amzn-repo pkgrepo_name: saltstack-amzn-repo
pkgrepo_humanname: SaltStack repo for Amazon Linux 2 pkgrepo_humanname: SaltStack repo for Amazon Linux 2
pkgrepo: 'https://repo.saltstack.com/{{ py_ver_dir or 'yum' }}/amazon/2/$basearch/{{ salt_release }}'
key_url: 'https://repo.saltstack.com/{{ py_ver_dir or 'yum' }}/amazon/2/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pkgrepo: '{{ salt_repo }}/{{ py_ver_dir or 'yum' }}/amazon/2/$basearch/{{ salt_release }}'
key_url: '{{ salt_repo }}/{{ py_ver_dir or 'yum' }}/amazon/2/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'


Ubuntu: Ubuntu:
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
key_url: 'https://repo.saltstack.com/{{ py_ver_dir or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pkgrepo: 'deb {{ salt_repo }}/{{ py_ver_dir or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
key_url: '{{ salt_repo }}/{{ py_ver_dir or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pygit2: python-pygit2 pygit2: python-pygit2
gitfs: gitfs:
pygit2: pygit2:
install_from_package: Null install_from_package: Null


Raspbian: Raspbian:
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir or 'apt' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main'
key_url: 'https://repo.saltstack.com/{{ py_ver_dir or 'apt' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pkgrepo: 'deb {{ salt_repo }}/{{ py_ver_dir or 'apt' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main'
key_url: '{{ salt_repo }}/{{ py_ver_dir or 'apt' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'


SmartOS: SmartOS:
salt_master: salt salt_master: salt

+ 1
- 1
test/integration/v3000-py2/files/_mapdata/ubuntu-16.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/3000 xenial main
pkgrepo: deb https://repo.saltstack.com/apt/ubuntu/16.04/amd64/3000 xenial main
py_ver: '' py_ver: ''
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3000-py2/files/_mapdata/ubuntu-18.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/apt/ubuntu/18.04/amd64/3000 bionic main
pkgrepo: deb https://repo.saltstack.com/apt/ubuntu/18.04/amd64/3000 bionic main
py_ver: '' py_ver: ''
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3000-py3/files/_mapdata/debian-10.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/debian/10/amd64/3000 buster main
pkgrepo: deb https://repo.saltstack.com/py3/debian/10/amd64/3000 buster main
py_ver: py3 py_ver: py3
pyinotify: python-pyinotify pyinotify: python-pyinotify
python_dulwich: python-dulwich python_dulwich: python-dulwich

+ 1
- 1
test/integration/v3000-py3/files/_mapdata/debian-9.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/debian/9/amd64/3000 stretch main
pkgrepo: deb https://repo.saltstack.com/py3/debian/9/amd64/3000 stretch main
py_ver: py3 py_ver: py3
pyinotify: python-pyinotify pyinotify: python-pyinotify
python_dulwich: python-dulwich python_dulwich: python-dulwich

+ 1
- 1
test/integration/v3000-py3/files/_mapdata/ubuntu-16.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/16.04/amd64/3000 xenial main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3000 xenial main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3000-py3/files/_mapdata/ubuntu-18.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/18.04/amd64/3000 bionic main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3000 bionic main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3001-py3/files/_mapdata/debian-10.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/debian/10/amd64/3001 buster main
pkgrepo: deb https://repo.saltstack.com/py3/debian/10/amd64/3001 buster main
py_ver: py3 py_ver: py3
pyinotify: python-pyinotify pyinotify: python-pyinotify
python_dulwich: python-dulwich python_dulwich: python-dulwich

+ 1
- 1
test/integration/v3001-py3/files/_mapdata/debian-9.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/debian/9/amd64/3001 stretch main
pkgrepo: deb https://repo.saltstack.com/py3/debian/9/amd64/3001 stretch main
py_ver: py3 py_ver: py3
pyinotify: python-pyinotify pyinotify: python-pyinotify
python_dulwich: python-dulwich python_dulwich: python-dulwich

+ 1
- 1
test/integration/v3001-py3/files/_mapdata/ubuntu-16.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/16.04/amd64/3001 xenial main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3001 xenial main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3001-py3/files/_mapdata/ubuntu-18.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/18.04/amd64/3001 bionic main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3001 bionic main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3001-py3/files/_mapdata/ubuntu-20.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/20.04/amd64/3001 focal main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/20.04/amd64/3001 focal main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3002-py3/files/_mapdata/debian-10.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/debian/10/amd64/3002 buster main
pkgrepo: deb https://repo.saltstack.com/py3/debian/10/amd64/3002 buster main
py_ver: py3 py_ver: py3
pyinotify: python-pyinotify pyinotify: python-pyinotify
python_dulwich: python-dulwich python_dulwich: python-dulwich

+ 1
- 1
test/integration/v3002-py3/files/_mapdata/debian-9.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/debian/9/amd64/3002 stretch main
pkgrepo: deb https://repo.saltstack.com/py3/debian/9/amd64/3002 stretch main
py_ver: py3 py_ver: py3
pyinotify: python-pyinotify pyinotify: python-pyinotify
python_dulwich: python-dulwich python_dulwich: python-dulwich

+ 1
- 1
test/integration/v3002-py3/files/_mapdata/ubuntu-16.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/16.04/amd64/3002 xenial main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3002 xenial main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3002-py3/files/_mapdata/ubuntu-18.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/18.04/amd64/3002 bionic main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3002 bionic main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

+ 1
- 1
test/integration/v3002-py3/files/_mapdata/ubuntu-20.yaml Zobrazit soubor

state: running state: running
parallel: true parallel: true
pin_version: false pin_version: false
pkgrepo: deb http://repo.saltstack.com/py3/ubuntu/20.04/amd64/3002 focal main
pkgrepo: deb https://repo.saltstack.com/py3/ubuntu/20.04/amd64/3002 focal main
py_ver: py3 py_ver: py3
pygit2: python-pygit2 pygit2: python-pygit2
pyinotify: python-pyinotify pyinotify: python-pyinotify

Načítá se…
Zrušit
Uložit