fixed google-chrome repository

This commit is contained in:
Jonas Forsberg
2020-08-04 11:00:19 +02:00
parent 170e642377
commit b1a510db5f
3 changed files with 184 additions and 3 deletions

View File

@@ -1,3 +1,16 @@
add the google-chrome signing key:
file.managed:
- name: /root/google_linux_signing_key.pub
- source: salt://files/google_linux_signing_key.pub
- user: root
- group: root
import google signing key:
cmd.run:
- name: rpm --import /root/google_linux_signing_key.pub
- onchanges:
- file: add the google-chrome signing key
{% for repo, args in salt['pillar.get']('repositories', {}).items() %}
Add {{ repo }} repository:
pkgrepo.managed:
@@ -7,4 +20,7 @@ Add {{ repo }} repository:
- enabled: {{ args['enabled'] }}
- gpgautoimport: {{ args['gpgautoimport'] }}
- refresh: {{ args['refresh'] }}
{% if 'gpgkey' in args -%}
- gpgkey: {{ args['gpgkey'] }}
{% endif %}
{% endfor %}