mirror of
https://github.com/unman/shaker.git
synced 2024-12-24 23:09:39 -05:00
Salt - caching proxy - handle rpmfusion repositories using baseurl instead of metalinks
This commit is contained in:
parent
eafda11c68
commit
336fdbf0e2
@ -52,5 +52,20 @@
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- 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 %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user