Browse Source

Refactor pillar repo key fetch

Change-Id: I511996de9d8abc69d6775b45482f8196c7159a1a
pull/165/head
azvyagintsev 6 years ago
parent
commit
7903ba97da
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      linux/system/repo.sls

+ 2
- 1
linux/system/repo.sls View File

@@ -73,9 +73,10 @@ linux_repo_{{ name }}_pin:

{%- if repo.get('key') %}
linux_repo_{{ name }}_key:
{% set repo_key = salt['hashutil.base64_b64encode'](repo.key) %}
cmd.run:
- name: |
echo "{{ repo.key | indent(12) }}" | apt-key add -
echo '{{ repo_key }}' | base64 -d | apt-key add -
- require_in:
{%- if repo.get('default', False) %}
- file: default_repo_list

Loading…
Cancel
Save