shaker/cacher
2021-02-02 04:48:48 +00:00
..
50_user.conf Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
acng.conf Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
change_templates.sls Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
clone.sls Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
clone.top Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
configure.sls Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
configure.top Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
create.sls Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
create.top Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
install.sls Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
install.top Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
README Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
use.sls Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00
use.top Moved cacher files to new subdirectory 2021-02-02 04:48:48 +00:00

This is a caching proxy, based on apt-cacher-ng.
Note that it expects a netvm called "tor" - you should change this to whatever netvm you want to use.
Edit the netvm entry in create.sls

Config files are included, which will work out of the box for Debian,Ubuntu and Fedora.
The cache and log directories are bind-mounted in /rw in the cacher qube.

apt-cacher-ng will cache HTTPS requests if you change https:// to http://HTTPS/// in repo source lists.
Look at change_templates.sls for a suggestion how to do this across all templates.

Copy directory to /srv/salt
qubesctl state.apply cacher.create
qubesctl --skip-dom0 --targets=template-cacher state.apply cacher.install
qubesctl --skip-dom0 --targets=cacher state.apply cacher.configure