mirror of
https://github.com/unman/shaker.git
synced 2025-01-12 15:59:31 -05:00
Salt - caching proxy - apply to all repos with wild card.
As @tlaurion suggestion. Closes #5
This commit is contained in:
parent
976756b248
commit
f676338c8d
@ -3,11 +3,18 @@
|
||||
#
|
||||
#
|
||||
{% if grains['os_family']|lower == 'debian' %}
|
||||
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
|
||||
{{ repo }}_baseurl:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'https://'
|
||||
- repl: 'http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
{% endfor %}
|
||||
|
||||
/etc/apt/sources.list:
|
||||
file.replace:
|
||||
- names:
|
||||
- /etc/apt/sources.list
|
||||
- /etc/apt/sources.list.d/qubes-r4.list
|
||||
- name: /etc/apt/sources.list
|
||||
- pattern: 'https:'
|
||||
- repl: 'http://HTTPS/'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
@ -23,19 +30,19 @@
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
|
||||
{% elif grains['os_family']|lower == 'redhat' %}
|
||||
/etc/yum.repos.d/:
|
||||
{% for repo in salt['file.find']('/etc/yum.repos.d/', name='*repo*') %}
|
||||
{{ repo }}_baseurl:
|
||||
file.replace:
|
||||
- names:
|
||||
- /etc/yum.repos.d/fedora.repo
|
||||
- /etc/yum.repos.d/fedora-updates.repo
|
||||
- /etc/yum.repos.d/fedora-updates-testing.repo
|
||||
- /etc/yum.repos.d/fedora-cisco-openh264.repo
|
||||
- name: {{ repo }}
|
||||
- pattern: 'baseurl=https://'
|
||||
- repl: 'baseurl=http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
{{ repo }}_metalink:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'metalink=https://(.*)basearch'
|
||||
- repl: 'metalink=http://HTTPS///\1basearch&protocol=http'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
/etc/yum.repos.d/qubes-r4.repo:
|
||||
file.replace:
|
||||
- pattern: 'https://'
|
||||
- repl: 'http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user