From 5326fe30e18ec3a5dbca4a2e1da8f9804eda14a5 Mon Sep 17 00:00:00 2001
From: Mohammed Naser <mnaser@vexxhost.com>
Date: Sat, 16 Jun 2018 20:44:10 -0400
Subject: [PATCH] Add percona to cache

The Percona mirrors are relatively unstable and therefore having
them in our cache would be very useful as we can avoid all the
hits (and it is relatively static content).

Also, this fixes a small missing quote in the Oracle Linux
configuration.

Change-Id: Iaa11d2de5d6709341c469b9b30da77a61f7533a6
---
 modules/openstack_project/templates/mirror.vhost.erb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb
index 2824510fe5..f62b80b5d2 100644
--- a/modules/openstack_project/templates/mirror.vhost.erb
+++ b/modules/openstack_project/templates/mirror.vhost.erb
@@ -202,9 +202,14 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
     ProxyPassReverse "/grafana/" "https://packagecloud.io/grafana/"
 
     # OracleLinux
-    CacheEnable disk "/oraclelinux
+    CacheEnable disk "/oraclelinux"
     ProxyPass "/oraclelinux/" "http://yum.oracle.com/repo/OracleLinux/" ttl=120 keepalive=On retry=0
     ProxyPassReverse "/oraclelinux/" "http://yum.oracle.com/repo/OracleLinux/"
+
+    # Percona
+    CacheEnable disk "/percona"
+    ProxyPass "/percona/" "https://repo.percona.com/" ttl=120 keepalive=On retry=0
+    ProxyPassReverse "/percona/" "https://repo.percona.com/"
 </VirtualHost>
 
 <VirtualHost <%= @vhost_name %>:8081>