diff --git a/cacher/change_templates.sls b/cacher/change_templates.sls index 36558df..ab7e3c1 100644 --- a/cacher/change_templates.sls +++ b/cacher/change_templates.sls @@ -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 %}