mirror of
https://github.com/unman/shaker.git
synced 2025-08-07 13:32:14 -04:00
Salt - caching proxy - handle rpmfusion repositories using baseurl instead of metalinks
This commit is contained in:
parent
eafda11c68
commit
336fdbf0e2
1 changed files with 15 additions and 0 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue