Salt - caching proxy. Add support for Qubes

This commit is contained in:
unman 2024-06-09 13:34:11 +00:00
parent 011a50fb18
commit 2ad623b40a
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
5 changed files with 44 additions and 2 deletions

View File

@ -5,3 +5,4 @@ binds+=( '/etc/apt-cacher-ng/archlx_mirrors_extra' )
binds+=( '/etc/apt-cacher-ng/debian_mirrors_extra' ) binds+=( '/etc/apt-cacher-ng/debian_mirrors_extra' )
binds+=( '/etc/apt-cacher-ng/fedora_mirrors_extra' ) binds+=( '/etc/apt-cacher-ng/fedora_mirrors_extra' )
binds+=( '/etc/apt-cacher-ng/blackarch_mirror-list' ) binds+=( '/etc/apt-cacher-ng/blackarch_mirror-list' )
binds+=( '/etc/apt-cacher-ng/Qubes_mirrors' )

30
cacher/Qubes_mirrors Normal file
View File

@ -0,0 +1,30 @@
http://ftp.halifax.rwth-aachen.de/qubes/
http://ftp.icm.edu.pl/pub/os/qubes/
https://ftp.cc.uoc.gr/mirrors/linux/qubes/
https://ftp.qubes-os.org/
https://ftp.rnl.tecnico.ulisboa.pt/pub/qubesos/
https://is.mirror.flokinet.net/qubes/
https://mirror-2.hosthink.net/qubes/
https://mirror.accum.se/mirror/qubes-os.org/
https://mirror.hackingand.coffee/qubes/
https://mirror.koljasagorski.de/qubes/
https://mirror.krmir.org/qubes/
https://mirror.leitecastro.com/qubes/
https://mirror.library.ucy.ac.cy/linux/qubes/
https://mirrors.aliyun.com/qubes/
https://mirrors.dgplug.org/qubes/
https://mirrors.dotsrc.org/qubes/
https://mirrors.edge.kernel.org/qubes/
https://mirrors.gigenet.com/qubes/
https://mirrors.hyperreal.coffee/qubes/
https://mirrors.nju.edu.cn/qubes/
https://mirrors.qontinuum.space/qubes-os/
https://mirrors.tuna.tsinghua.edu.cn/qubesos/
https://mirrors.ukfast.co.uk/sites/qubes-os.org/
https://nl.mirror.flokinet.net/qubes/
https://plug-mirror.rcac.purdue.edu/qubes/
https://polish-mirror.evolution-host.com/qubes/
https://quantum-mirror.hu/mirrors/pub/qubes/
https://qubes-mirror.igniterefereeing.com.au/
https://qubesos-mirror.applied-privacy.net/
https://ro.mirror.flokinet.net/qubes/

View File

@ -75,6 +75,7 @@ Remap-debrep: file:deb_mirror*.gz file:debian_mirrors_extra /debian ; file:backe
Remap-fedrep: file:fedora_mirrors file:fedora_mirrors_extra ; https://mirrors.kernel.org/fedora/ https://ftp-stud.hs-esslingen.de/pub/fedora/linux/ # Fedora Linux Remap-fedrep: file:fedora_mirrors file:fedora_mirrors_extra ; https://mirrors.kernel.org/fedora/ https://ftp-stud.hs-esslingen.de/pub/fedora/linux/ # Fedora Linux
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
Remap-Qubes: file:Qubes_mirrors
Remap-klxrep: file:kali_mirrors /kali ; file:backends_kali # Kali Linux Archives Remap-klxrep: file:kali_mirrors /kali ; file:backends_kali # Kali Linux Archives
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here
Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here

View File

@ -2,15 +2,17 @@
{% if grains['nodename'] != 'dom0' %} {% if grains['nodename'] != 'dom0' %}
/rw/config/rc.local: cacher_/rw/config/rc.local:
file.append: file.append:
- name: /rw/config/rc.local
- text: | - text: |
systemctl unmask apt-cacher-ng systemctl unmask apt-cacher-ng
systemctl start apt-cacher-ng systemctl start apt-cacher-ng
/usr/sbin/nft insert rule qubes custom-input tcp dport 8082 accept /usr/sbin/nft insert rule qubes custom-input tcp dport 8082 accept
/rw/config/qubes-firewall-user-script: cacher_/rw/config/qubes-firewall-user-script:
file.append: file.append:
- name: /rw/config/qubes-firewall-user-script
- text: /usr/sbin/nft insert rule qubes custom-input tcp dport 8082 accept - text: /usr/sbin/nft insert rule qubes custom-input tcp dport 8082 accept
/rw/config/qubes-bind-dirs.d/50_user.conf: /rw/config/qubes-bind-dirs.d/50_user.conf:

View File

@ -5,6 +5,14 @@
{% if grains['nodename'] != 'dom0' %} {% if grains['nodename'] != 'dom0' %}
/etc/apt-cacher-ng/Qubes_mirrors:
file.managed:
- source:
- salt://cacher/Qubes_mirrors
- user: root
- group: root
- makedirs: True
/etc/apt-cacher-ng/fedora_mirrors_extra: /etc/apt-cacher-ng/fedora_mirrors_extra:
file.managed: file.managed:
- source: - source: