Don't use Apt Cacher NG with https repositories.
authorMatt Birkholz <matt@birchwood-abbey.net>
Fri, 20 Sep 2024 19:25:47 +0000 (13:25 -0600)
committerMatt Birkholz <matt@birchwood-abbey.net>
Fri, 20 Sep 2024 19:25:47 +0000 (13:25 -0600)
Connect directly.  Cache locally.  Only Jellyfin makes us do this,
currently.

README.org
roles_t/abbey-cloister/tasks/main.yml
roles_t/abbey-core/tasks/main.yml

index f582accfb0d266cd4c19d330d2afcc664566e0f4..886b9ea288e44778c210cc0905a2d1ffbeb25321 100644 (file)
@@ -968,7 +968,9 @@ The abbey uses the Apt-Cacher:TNG package cache on Core.  The
 
 ** Use Cloister Apt Cache
 
-Core itself will benefit from using the package cache.
+Core itself will benefit from using the package cache, but should
+contact ~https~ repositories directly.  (There are few such cretins
+so caching their packages is not a priority.)
 
 #+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
 #+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
@@ -979,6 +981,8 @@ Core itself will benefit from using the package cache.
     content: >
       Acquire::http::Proxy
       "http://apt-cacher.birchwood.private.:3142";
+
+      Acquire::https::Proxy "DIRECT";
     dest: /etc/apt/apt.conf.d/01proxy
     mode: u=rw,g=r,o=r
 #+END_SRC
@@ -1684,6 +1688,9 @@ repeatedly until few or no incomplete or damaged files are found.
 Depending on the quality of the Internet connection, this may take a
 while.
 
+Again, ~https~ repositories are contacted directly, cached only on the
+local host.
+
 #+CAPTION: [[file:roles_t/abbey-cloister/tasks/main.yml][=roles_t/abbey-cloister/tasks/main.yml=]]
 #+BEGIN_SRC conf :tangle roles_t/abbey-cloister/tasks/main.yml :mkdirp yes
 ---
@@ -1693,6 +1700,8 @@ while.
     content: >
       Acquire::http::Proxy
       "http://apt-cacher.birchwood.private.:3142";
+
+      Acquire::https::Proxy "DIRECT";
     dest: /etc/apt/apt.conf.d/01proxy
     mode: u=rw,g=r,o=r
 #+END_SRC
index 6b499eedf7b5739b22c0be7d842593158db0a5c5..d4b064b4d24724c50646aa04d532fbe5c3d3002c 100644 (file)
@@ -5,6 +5,8 @@
     content: >
       Acquire::http::Proxy
       "http://apt-cacher.birchwood.private.:3142";
+
+      Acquire::https::Proxy "DIRECT";
     dest: /etc/apt/apt.conf.d/01proxy
     mode: u=rw,g=r,o=r
 
index 8930b1a221cfa1c21c5332782f280f802a020ad4..c9921b9fb129bbdce64418b69bac7cb1f1067120 100644 (file)
     content: >
       Acquire::http::Proxy
       "http://apt-cacher.birchwood.private.:3142";
+
+      Acquire::https::Proxy "DIRECT";
     dest: /etc/apt/apt.conf.d/01proxy
     mode: u=rw,g=r,o=r