Put custom fedora_mirrors in the template, not the qube

This commit is contained in:
unman 2021-10-07 14:48:30 +00:00
parent d669a3d868
commit 4674c91224
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
3 changed files with 8 additions and 12 deletions

View File

@ -15,10 +15,10 @@ qubesctl state.apply cacher.use
This will configure /etc/qubes-rpc/policy/qubes.UpdatesProxy to use the cachingproxy be default.
apt-cacher-ng will cache HTTPS requests if you change https:// to http://HTTPS/// in repo source lists.
To configure the templates to use the proxyin this way, run:
To configure the templates to use the proxy in this way, run:
qubesctl --skip-dom0 --targets=Templates state.apply cacher.change_templates.sls
Or target individual templates, as you wish.
N.B
apt-cacher-ng works well for Debian,Ubuntu,and Arch.
It works reasonably well for Fedora, but may require tweaking of the apt-cacher-ng control file.
It works reasonably well for Fedora, but may require tweaking of the apt-cacher-ng control file, and the fedora_mirrors lists.

View File

@ -18,10 +18,3 @@
- user: root
- group: root
- makedirs: True
/etc/apt-cacher-ng/fedora_mirrors:
file.managed:
- source:
- salt://cacher/fedora_mirrors
- user: root
- group: root

View File

@ -38,6 +38,9 @@ cp /lib/apt-cacher-ng/deb_mirrors.gz /etc/apt-cacher-ng/deb_mirrors.gz:
cmd.run:
- runas: root
cp /lib/apt-cacher-ng/fedora_mirrors /etc/apt-cacher-ng/fedora_mirrors:
cmd.run:
- runas: root
/etc/apt-cacher-ng/fedora_mirrors:
file.managed:
- source:
- salt://cacher/fedora_mirrors
- user: root
- group: root