mirror of
https://github.com/unman/shaker.git
synced 2024-10-01 01:25:41 -04:00
Put custom fedora_mirrors in the template, not the qube
This commit is contained in:
parent
d669a3d868
commit
4674c91224
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user