Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default pkgrepo and key_url fail on Ubuntu *.10 versions #310

Closed
alexander-bauer opened this issue May 19, 2017 · 0 comments
Closed

Default pkgrepo and key_url fail on Ubuntu *.10 versions #310

alexander-bauer opened this issue May 19, 2017 · 0 comments

Comments

@alexander-bauer
Copy link

Using salt.pkgrepo on Ubuntu 16.10 (and other *.10 versions, I would guess, by looking at the available Ubuntu repositories), the saltstack-pkgrepo state fails because the package repository URL that is created does not exist. This is because the repository URL is created using grains['os'] and grains['osrelease'], for which a repository does not actually exist.

I was able to work around this by specifying the repository for Ubuntu 16.04 in the pillars. I don't know if there is a good way to work around this in general, because it might be preferable to fail than to use an unexpectedly older version, but a note in the documentation would be nice.

Here is my workaround snippet.

# pillars/salt.sls
salt:
  # ...
  {% if grains['os'] == 'Ubuntu' and grains['osrelease'] == '16.10' %}
  key_url: 'http://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub'
  pkgrepo: 'deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest xenial main'
  {% endif %}
@aboe76 aboe76 closed this as completed Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants