Builder - use cacher if present

This commit is contained in:
unman 2022-05-21 15:36:17 +00:00
parent 1889b4a69c
commit 31206db10c
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -1,5 +1,26 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : # vim: set syntax=yaml ts=2 sw=2 sts=2 et :
{% if salt['qvm.exists']('cacher') %}
/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 %}
install: install:
pkg.installed: pkg.installed:
- pkgs: - pkgs:
@ -14,6 +35,8 @@ install:
- devscripts - devscripts
- dialog - dialog
- dpkg-dev - dpkg-dev
- fedora-packager
- fedora-review
- g++ - g++
- gcc - gcc
- git - git
@ -34,5 +57,3 @@ install:
- texinfo - texinfo
- wget - wget
- zlib-devel - zlib-devel
- fedora-packager
- fedora-review