Salt - caching proxy - handle rpmfusion repositories using baseurl instead of metalinks

This commit is contained in:
unman 2022-11-24 15:30:09 +00:00
parent eafda11c68
commit 336fdbf0e2
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -52,5 +52,20 @@
- flags: [ 'IGNORECASE', 'MULTILINE' ] - flags: [ 'IGNORECASE', 'MULTILINE' ]
- backup: False - backup: False
{% endfor %}
{% for repo in salt['file.find']('/etc/yum.repos.d/', name='rpmfusion*repo*') %}
{{ repo }}_uncomment:
file.uncomment:
- name: {{ repo }}
- regex : '.*baseurl(.*)'
- ignore_missing: True
- backup: False
{{ repo }}_comment:
file.comment:
- name: {{ repo }}
- regex: '^metalink=http(.*)'
- ignore_missing: True
- backup: False
{% endfor %} {% endfor %}
{% endif %} {% endif %}