Browse Source

Enable adding multiline GPG key.

pull/150/head
Martin Horak 6 years ago
parent
commit
c0c7292279
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      linux/system/repo.sls

+ 6
- 3
linux/system/repo.sls View File



linux_repo_{{ name }}_key: linux_repo_{{ name }}_key:
cmd.wait: cmd.wait:
- name: "echo '{{ repo.key }}' | apt-key add -"
- name: |
echo '{{ repo.key|indent(8, false) }}' | apt-key add -
- watch: - watch:
- file: default_repo_list - file: default_repo_list




linux_repo_{{ name }}_key: linux_repo_{{ name }}_key:
cmd.run: cmd.run:
- name: "echo '{{ repo.key }}' | apt-key add -"
- unless: "apt-key finger --with-colons | grep -qF $(echo '{{ repo.key }} | gpg --with-fingerprint --with-colons | grep -E '^fpr')"
- name: |
echo '{{ repo.key|indent(8, false) }}' | apt-key add -
- unless: |
apt-key finger --with-colons | grep -qF $(echo '{{ repo.key|indent(8, false) }}' | gpg --with-fingerprint --with-colons | grep -E '^fpr')
- require_in: - require_in:
- pkgrepo: linux_repo_{{ name }} - pkgrepo: linux_repo_{{ name }}



Loading…
Cancel
Save