Browse Source

Fix default_repo requirments

Change-Id: I2d374a589e18f38f91beac9514ff5bf3c034d637
pull/153/head
azvyagintsev 6 years ago
parent
commit
eda3823a09
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      linux/system/repo.sls

+ 8
- 0
linux/system/repo.sls View File

- unless: | - unless: |
apt-key finger --with-colons | grep -qF $(echo "{{ repo.key| indent(12) }}" | gpg --with-fingerprint --with-colons | grep -E '^fpr') apt-key finger --with-colons | grep -qF $(echo "{{ repo.key| indent(12) }}" | gpg --with-fingerprint --with-colons | grep -E '^fpr')
- require_in: - require_in:
{%- if repo.get('default', False) %}
- file: default_repo_list
{% else %}
- pkgrepo: linux_repo_{{ name }} - pkgrepo: linux_repo_{{ name }}
{% endif %}


{%- elif repo.key_url|default(False) %} {%- elif repo.key_url|default(False) %}


- name: "curl -sL {{ repo.key_url }} | apt-key add -" - name: "curl -sL {{ repo.key_url }} | apt-key add -"
- unless: "apt-key finger --with-colons | grep -qF $(curl -sL {{ repo.key_url }} | gpg --with-fingerprint --with-colons | grep -E '^fpr')" - unless: "apt-key finger --with-colons | grep -qF $(curl -sL {{ repo.key_url }} | gpg --with-fingerprint --with-colons | grep -E '^fpr')"
- require_in: - require_in:
{%- if repo.get('default', False) %}
- file: default_repo_list
{% else %}
- pkgrepo: linux_repo_{{ name }} - pkgrepo: linux_repo_{{ name }}
{% endif %}


{%- endif %} {# 2 #} {%- endif %} {# 2 #}



Loading…
Cancel
Save