Skip to content

Commit

Permalink
Merge pull request #514 from netmanagers/fix-repo-name
Browse files Browse the repository at this point in the history
Fix Debian's family repository filename
  • Loading branch information
myii authored Sep 17, 2021
2 parents f8acdc5 + 47ab261 commit 91f63f2
Show file tree
Hide file tree
Showing 25 changed files with 93 additions and 487 deletions.
4 changes: 3 additions & 1 deletion salt/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@


Debian:
pkgrepo: 'deb {{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
pkgrepo: 'deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] {{ 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'
pkgrepo_keyring: '{{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/salt-archive-keyring.gpg'
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
libgit2: libgit2-22
pyinotify: python-pyinotify
gitfs:
Expand Down
4 changes: 3 additions & 1 deletion salt/osmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Amazon:
key_url: '{{ salt_repo }}/{{ py_ver_repr or 'yum' }}/amazon/2/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'

Ubuntu:
pkgrepo: 'deb {{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
pkgrepo: 'deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] {{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
pkgrepo_keyring: '{{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/salt-archive-keyring.gpg'
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
key_url: '{{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
pygit2: python-pygit2
gitfs:
Expand Down
4 changes: 2 additions & 2 deletions salt/pkgrepo/debian/absent.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ salt-pkgrepo-clean-saltstack-debian:
pkgrepo.absent:
- name: {{ salt_settings.pkgrepo }}
file.absent:
- name: /etc/apt/sources.list.d/saltstack.list
- name: /etc/apt/sources.list.d/salt.list
salt-pkgrepo-clean-saltstack-debian-apt-key:
file.absent:
- name: /etc/apt/trusted.gpg.d/saltstack.gpg
- name: /usr/share/keyrings/salt-archive-keyring.gpg
4 changes: 2 additions & 2 deletions salt/pkgrepo/debian/clean.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ salt-pkgrepo-clean-saltstack-debian:
pkgrepo.absent:
- name: {{ salt_settings.pkgrepo }}
file.absent:
- name: /etc/apt/sources.list.d/saltstack.list
- name: /etc/apt/sources.list.d/salt.list
salt-pkgrepo-clean-saltstack-debian-apt-key:
file.absent:
- name: /etc/apt/trusted.gpg.d/saltstack.gpg
- name: /usr/share/keyrings/salt-archive-keyring.gpg
20 changes: 17 additions & 3 deletions salt/pkgrepo/debian/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,27 @@
# vim: ft=sls
{% from "salt/map.jinja" import salt_settings with context %}
salt-pkgrepo-install-saltstack-debian-keyring:
file.managed:
- name: /usr/share/keyrings/salt-archive-keyring.gpg
- source: {{ salt_settings.pkgrepo_keyring }}
- source_hash: {{ salt_settings.pkgrepo_keyring_hash }}
- require_in:
- pkgrepo: salt-pkgrepo-install-saltstack-debian
salt-pkgrepo-install-saltstack-debian-remove-old-repo-file:
file.absent:
- name: /etc/apt/sources.list.d/saltstack.list
- require_in:
- pkgrepo: salt-pkgrepo-install-saltstack-debian
salt-pkgrepo-install-saltstack-debian:
pkgrepo.managed:
- humanname: SaltStack Debian Repo
- name: {{ salt_settings.pkgrepo }}
- file: /etc/apt/sources.list.d/saltstack.list
- file: /etc/apt/sources.list.d/salt.list
- key_url: {{ salt_settings.key_url }}
- clean_file: True
# Order: 1 because we can't put a require_in on "pkg: salt-{master,minion}"
# Order: 3 because we can't put a require_in on "pkg: salt-{master,minion}"
# because we don't know if they are used.
- order: 1
- order: 3
115 changes: 0 additions & 115 deletions test/integration/v3000-py2/files/_mapdata/ubuntu-16.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion test/integration/v3000-py2/files/_mapdata/ubuntu-18.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ values:
state: running
parallel: true
pin_version: false
pkgrepo: deb https://repo.saltproject.io/apt/ubuntu/18.04/amd64/3000 bionic main
pkgrepo: deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64]
https://repo.saltproject.io/apt/ubuntu/18.04/amd64/3000 bionic main
pkgrepo_keyring: https://repo.saltproject.io/apt/ubuntu/18.04/amd64/3000/salt-archive-keyring.gpg
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
py_ver: ''
pygit2: python-pygit2
pyinotify: python-pyinotify
Expand Down
5 changes: 4 additions & 1 deletion test/integration/v3000-py3/files/_mapdata/debian-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ values:
state: running
parallel: true
pin_version: false
pkgrepo: deb https://repo.saltproject.io/py3/debian/10/amd64/3000 buster main
pkgrepo: deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64]
https://repo.saltproject.io/py3/debian/10/amd64/3000 buster main
pkgrepo_keyring: https://repo.saltproject.io/py3/debian/10/amd64/3000/salt-archive-keyring.gpg
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
py_ver: py3
pyinotify: python-pyinotify
python_dulwich: python-dulwich
Expand Down
5 changes: 4 additions & 1 deletion test/integration/v3000-py3/files/_mapdata/debian-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ values:
state: running
parallel: true
pin_version: false
pkgrepo: deb https://repo.saltproject.io/py3/debian/9/amd64/3000 stretch main
pkgrepo: deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64]
https://repo.saltproject.io/py3/debian/9/amd64/3000 stretch main
pkgrepo_keyring: https://repo.saltproject.io/py3/debian/9/amd64/3000/salt-archive-keyring.gpg
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
py_ver: py3
pyinotify: python-pyinotify
python_dulwich: python-dulwich
Expand Down
115 changes: 0 additions & 115 deletions test/integration/v3000-py3/files/_mapdata/ubuntu-16.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion test/integration/v3000-py3/files/_mapdata/ubuntu-18.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ values:
state: running
parallel: true
pin_version: false
pkgrepo: deb https://repo.saltproject.io/py3/ubuntu/18.04/amd64/3000 bionic main
pkgrepo: deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64]
https://repo.saltproject.io/py3/ubuntu/18.04/amd64/3000 bionic main
pkgrepo_keyring: https://repo.saltproject.io/py3/ubuntu/18.04/amd64/3000/salt-archive-keyring.gpg
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
py_ver: py3
pygit2: python-pygit2
pyinotify: python-pyinotify
Expand Down
5 changes: 4 additions & 1 deletion test/integration/v3001-py3/files/_mapdata/debian-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ values:
state: running
parallel: true
pin_version: false
pkgrepo: deb https://repo.saltproject.io/py3/debian/10/amd64/3001 buster main
pkgrepo: deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64]
https://repo.saltproject.io/py3/debian/10/amd64/3001 buster main
pkgrepo_keyring: https://repo.saltproject.io/py3/debian/10/amd64/3001/salt-archive-keyring.gpg
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
py_ver: py3
pyinotify: python-pyinotify
python_dulwich: python-dulwich
Expand Down
5 changes: 4 additions & 1 deletion test/integration/v3001-py3/files/_mapdata/debian-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ values:
state: running
parallel: true
pin_version: false
pkgrepo: deb https://repo.saltproject.io/py3/debian/9/amd64/3001 stretch main
pkgrepo: deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64]
https://repo.saltproject.io/py3/debian/9/amd64/3001 stretch main
pkgrepo_keyring: https://repo.saltproject.io/py3/debian/9/amd64/3001/salt-archive-keyring.gpg
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
py_ver: py3
pyinotify: python-pyinotify
python_dulwich: python-dulwich
Expand Down
Loading

0 comments on commit 91f63f2

Please sign in to comment.