mirror of
https://github.com/unman/shaker.git
synced 2024-12-27 00:09:41 -05:00
Salt - caching proxy - add support for fedora and arch templates
This commit is contained in:
parent
182ff148dc
commit
b245f82991
@ -2,14 +2,40 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
/etc/apt/sources.list:
|
{% if grains['os_family']|lower == 'debian' %}
|
||||||
|
/etc/apt/sources.list:
|
||||||
file.replace:
|
file.replace:
|
||||||
|
- names:
|
||||||
|
- /etc/apt/sources.list
|
||||||
|
- /etc/apt/sources.list.d/qubes-r4.list
|
||||||
- pattern: 'https:'
|
- pattern: 'https:'
|
||||||
- repl: 'http://HTTPS/'
|
- repl: 'http://HTTPS/'
|
||||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||||
|
|
||||||
/etc/apt/sources.list.d/qubes-r4.list:
|
{% elif grains['os_family']|lower == 'arch' %}
|
||||||
|
pacman:
|
||||||
file.replace:
|
file.replace:
|
||||||
|
- names:
|
||||||
|
- /etc/pacman.d/mirrorlist
|
||||||
|
- /etc/pacman.d/99-qubes-repository-4.1.conf.disabled
|
||||||
- pattern: 'https:'
|
- pattern: 'https:'
|
||||||
- repl: 'http://HTTPS/'
|
- repl: 'http://HTTPS/'
|
||||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||||
|
|
||||||
|
{% elif grains['os_family']|lower == 'redhat' %}
|
||||||
|
/etc/yum.repos.d/:
|
||||||
|
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
|
||||||
|
- 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' ]
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user