Pārlūkot izejas kodu

Move keyring choice to pillar

tags/v0.7.0
Sylvain COUTANT pirms 6 gadiem
vecāks
revīzija
1c559ef1fa
3 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. +1
    -1
      apt/map.jinja
  2. +2
    -1
      apt/repositories.sls
  3. +3
    -1
      pillar.example

+ 1
- 1
apt/map.jinja Parādīt failu

@@ -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,
@@ -32,4 +33,3 @@
},
},
}, merge=salt['pillar.get']('apt:lookup'), default='Debian') %}


+ 2
- 1
apt/repositories.sls Parādīt failu

@@ -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:

+ 3
- 1
pillar.example Parādīt failu

@@ -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

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


Notiek ielāde…
Atcelt
Saglabāt