Skip to content

Commit

Permalink
Move keyring choice to pillar
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain COUTANT committed Feb 16, 2018
1 parent 39bcc23 commit 1c559ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apt/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
'clean_preferences_d': false,
'default_keyserver': 'pool.sks-keyservers.net',
'default_url': 'http://deb.debian.org/debian/',
'default_keyring_package': 'debian-archive-keyring',
'repositories': {
'sane_default': {
'distro': distribution,
Expand All @@ -32,4 +33,3 @@
},
},
}, merge=salt['pillar.get']('apt:lookup'), default='Debian') %}

3 changes: 2 additions & 1 deletion apt/repositories.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
{% set sources_list_dir = apt.get('sources_list_dir', apt_map.sources_list_dir) %}
{% set repositories = apt.get('repositories', apt_map.repositories) %}
{% set default_url = apt.get('default_url', apt_map.default_url) %}
{% set keyring_package = apt.get('keyring_package', apt_map.default_keyring_package) %}
debian-archive-keyring:
{{ keyring_package }}:
pkg.installed
/etc/apt/sources.list:
Expand Down
4 changes: 3 additions & 1 deletion pillar.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apt:
# Set the right keyring for the distro (ie ubuntu-keyring or ...)
keyring_package: debian-archive-keyring

remove_sources_list: true
clean_sources_list_d: true

Expand Down Expand Up @@ -95,4 +98,3 @@ apt:
03-all:
pin: release unstable
priority: 50

0 comments on commit 1c559ef

Please sign in to comment.