2020-08-04 09:00:19 +00:00
|
|
|
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
|
|
|
|
|
2020-05-09 09:17:42 +00:00
|
|
|
{% for repo, args in salt['pillar.get']('repositories', {}).items() %}
|
|
|
|
Add {{ repo }} repository:
|
|
|
|
pkgrepo.managed:
|
|
|
|
- name: {{ repo }}
|
|
|
|
- humanname: {{ args['humanname'] }}
|
|
|
|
- baseurl: {{ args['baseurl'] }}
|
|
|
|
- enabled: {{ args['enabled'] }}
|
|
|
|
- gpgautoimport: {{ args['gpgautoimport'] }}
|
|
|
|
- refresh: {{ args['refresh'] }}
|
2020-08-04 09:00:19 +00:00
|
|
|
{% if 'gpgkey' in args -%}
|
|
|
|
- gpgkey: {{ args['gpgkey'] }}
|
|
|
|
{% endif %}
|
2020-05-09 09:17:42 +00:00
|
|
|
{% endfor %}
|