saltstack-formulas / salt-formula

Yes, Salt can Salt itself!
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
197 stars 423 forks source link

[BUG] pkgrepo uri wrong on ubuntu20 #483

Open noelmcloughlin opened 3 years ago

noelmcloughlin commented 3 years ago

Your setup

Formula commit hash / release tag

Versions reports (master & minion)

Pillar / config used


Bug details

Describe the bug

Failed state on Ubuntu 20.04

          ID: salt-pkgrepo-install-saltstack-debian
    Function: pkgrepo.managed
        Name: deb http://repo.saltstack.com/apt/ubuntu/20.04/amd64/latest focal main
      Result: False
     Comment: Failed to configure repo 'deb http://repo.saltstack.com/apt/ubuntu/20.04/amd64/latest focal main': Error: HTTP 404: Not Found reading https://repo.saltstack.com/apt/ubuntu/20.04/amd64/latest/SALTSTACK-GPG-KEY.pub
     Started: 22:57:47.925263
    Duration: 687.385 ms
     Changes:

Correct repo uri is (according to https://repo.saltstack.com/#ubuntu):

https://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest/

Steps to reproduce the bug

Expected behaviour

Attempts to fix the bug

Additional context

noelmcloughlin commented 3 years ago

workaround: wget -O - https://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -

arthurzenika commented 3 years ago

Same bug for debian.

Workaround : add the following to your pillars :

salt:
  py_vers: py3

Not sure how it would work for py2 deploys

major0 commented 1 year ago

py2 deploys shouldn't be supported anymore.