From 7187b313d840425bfe1cb71c9219f7f85a53b7b4 Mon Sep 17 00:00:00 2001
From: Ian Wienand <iwienand@redhat.com>
Date: Tue, 24 Mar 2020 09:20:01 +1100
Subject: [PATCH] Remove /tarballs proxy from mirrors

As described in the dependent change, which removes the environment
var to set this up, this is no longer required.

Story: #2006598
Task: #39014

Change-Id: I93455dd1512aeb9111feaf516abfb60695976663
Depends-On: https://review.opendev.org/714543
---
 modules/openstack_project/templates/mirror.vhost.erb | 5 -----
 playbooks/roles/mirror/templates/mirror.vhost.j2     | 5 -----
 2 files changed, 10 deletions(-)

diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb
index 479f3cbd74..1912228c52 100644
--- a/modules/openstack_project/templates/mirror.vhost.erb
+++ b/modules/openstack_project/templates/mirror.vhost.erb
@@ -197,11 +197,6 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
     ProxyPass "/cbs.centos/" "https://cbs.centos.org/repos/" ttl=120 keepalive=On retry=0
     ProxyPassReverse "/cbs.centos/" "https://cbs.centos.org/repos/"
 
-    # tarballs
-    CacheEnable disk  "/tarballs"
-    ProxyPass "/tarballs/" "https://tarballs.openstack.org/" ttl=120 keepalive=On retry=0
-    ProxyPassReverse "/tarballs/" "https://tarballs.openstack.org/"
-
     # pypi
     CacheEnable disk  "/pypi"
     ProxyPass "/pypi/" "https://pypi.org/" ttl=120 keepalive=On retry=0
diff --git a/playbooks/roles/mirror/templates/mirror.vhost.j2 b/playbooks/roles/mirror/templates/mirror.vhost.j2
index d9218e58f7..6429032c79 100644
--- a/playbooks/roles/mirror/templates/mirror.vhost.j2
+++ b/playbooks/roles/mirror/templates/mirror.vhost.j2
@@ -209,11 +209,6 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \
     ProxyPass "/cbs.centos/" "https://cbs.centos.org/repos/" ttl=120 keepalive=On retry=0
     ProxyPassReverse "/cbs.centos/" "https://cbs.centos.org/repos/"
 
-    # tarballs
-    CacheEnable disk  "/tarballs"
-    ProxyPass "/tarballs/" "https://tarballs.openstack.org/" ttl=120 keepalive=On retry=0
-    ProxyPassReverse "/tarballs/" "https://tarballs.openstack.org/"
-
     # pypi
     CacheEnable disk  "/pypi"
     ProxyPass "/pypi/" "https://pypi.org/" ttl=120 keepalive=On retry=0