mirror of
https://github.com/unman/shaker.git
synced 2025-03-25 16:38:14 -04:00
Salt - caching proxy - Restore repo definitions on package removal
This commit is contained in:
parent
655d37e127
commit
e188839f7b
42
cacher/restore_templates.sls
Normal file
42
cacher/restore_templates.sls
Normal file
@ -0,0 +1,42 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
#
|
||||
#
|
||||
#
|
||||
{% if grains['os_family']|lower == 'debian' %}
|
||||
/etc/apt/sources.list:
|
||||
file.replace:
|
||||
- names:
|
||||
- /etc/apt/sources.list
|
||||
- /etc/apt/sources.list.d/qubes-r4.list
|
||||
- pattern: 'http://HTTPS/'
|
||||
- repl: 'https:'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
|
||||
{% elif grains['os_family']|lower == 'arch' %}
|
||||
pacman:
|
||||
file.replace:
|
||||
- names:
|
||||
- /etc/pacman.d/mirrorlist
|
||||
- /etc/pacman.d/99-qubes-repository-4.1.conf.disabled
|
||||
- pattern: 'http://HTTPS/'
|
||||
- repl: 'https:'
|
||||
- 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=http://HTTPS///(.*)basearch&protocol=http'
|
||||
- repl: 'metalink=https://\1basearch'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
/etc/yum.repos.d/qubes-r4.repo:
|
||||
file.replace:
|
||||
- pattern: 'http://HTTPS/'
|
||||
- repl: 'https:'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
|
||||
{% endif %}
|
4
cacher/restore_templates.top
Normal file
4
cacher/restore_templates.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
qubes:type:template:
|
||||
- match: pillar
|
||||
- cacher.restore_templates
|
Loading…
x
Reference in New Issue
Block a user