Browse Source

Move keyring choice to pillar

master
Sylvain COUTANT 6 years ago
parent
commit
1c559ef1fa
3 changed files with 6 additions and 3 deletions
  1. +1
    -1
      apt/map.jinja
  2. +2
    -1
      apt/repositories.sls
  3. +3
    -1
      pillar.example

+ 1
- 1
apt/map.jinja View File

'clean_preferences_d': false, 'clean_preferences_d': false,
'default_keyserver': 'pool.sks-keyservers.net', 'default_keyserver': 'pool.sks-keyservers.net',
'default_url': 'http://deb.debian.org/debian/', 'default_url': 'http://deb.debian.org/debian/',
'default_keyring_package': 'debian-archive-keyring',
'repositories': { 'repositories': {
'sane_default': { 'sane_default': {
'distro': distribution, 'distro': distribution,
}, },
}, },
}, merge=salt['pillar.get']('apt:lookup'), default='Debian') %} }, merge=salt['pillar.get']('apt:lookup'), default='Debian') %}


+ 2
- 1
apt/repositories.sls View File

{% set sources_list_dir = apt.get('sources_list_dir', apt_map.sources_list_dir) %} {% set sources_list_dir = apt.get('sources_list_dir', apt_map.sources_list_dir) %}
{% set repositories = apt.get('repositories', apt_map.repositories) %} {% set repositories = apt.get('repositories', apt_map.repositories) %}
{% set default_url = apt.get('default_url', apt_map.default_url) %} {% 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 pkg.installed


/etc/apt/sources.list: /etc/apt/sources.list:

+ 3
- 1
pillar.example View File

apt: apt:
# Set the right keyring for the distro (ie ubuntu-keyring or ...)
keyring_package: debian-archive-keyring
remove_sources_list: true remove_sources_list: true
clean_sources_list_d: true clean_sources_list_d: true


03-all: 03-all:
pin: release unstable pin: release unstable
priority: 50 priority: 50


Loading…
Cancel
Save