From 872cfa42a5de3b30d39dd9bf375939ee0324ef0a Mon Sep 17 00:00:00 2001
From: Alex Iribarren <Alex.Iribarren@cern.ch>
Date: Thu, 6 Dec 2018 17:37:21 +0100
Subject: [PATCH 1/2] Sync the redhat repos to the correct place

---
 dev.repos.yaml    |  5 ++--
 prod.repos.yaml   | 72 +++++++++++++++++++++++++++++++++++++++++++++--
 prod.variables.sh |  2 +-
 3 files changed, 73 insertions(+), 6 deletions(-)

diff --git a/dev.repos.yaml b/dev.repos.yaml
index b809d50..278aa4e 100644
--- a/dev.repos.yaml
+++ b/dev.repos.yaml
@@ -11,7 +11,7 @@
 defaults:
   schedule: '* * * * *'
   checksum: 'sha256'
-  pathroot: ''
+  pathroot: 'mirror'
   pathcut: '//'
   run_reposync: true
   run_createrepo: true
@@ -19,5 +19,6 @@ defaults:
 
 ### Repos go here ###
 
-redhat-5-x86_64.repo:
+redhat-5-els-x86_64.repo:
   checksum: 'sha'
+  pathroot: ''
diff --git a/prod.repos.yaml b/prod.repos.yaml
index 31d4850..eda15c8 100644
--- a/prod.repos.yaml
+++ b/prod.repos.yaml
@@ -11,7 +11,7 @@
 defaults:
   schedule: '0 */12 * * *'
   checksum: 'sha256'
-  pathroot: ''
+  pathroot: 'mirror'
   pathcut: '//'
   run_reposync: true
   run_createrepo: true
@@ -20,27 +20,93 @@ defaults:
 ### Repos go here ###
 
 cloudera.repo:
-  pathroot: 'archive.cloudera.com'
+  pathroot: 'mirror/archive.cloudera.com'
   pathcut: 'cdh5/redhat'
 
 ceph-org.repo:
-  pathroot: 'download.ceph.com'
+  pathroot: 'mirror/download.ceph.com'
   pathcut: 'cephmirror.cern.ch'
 
 redhat-5-els-i386.repo:
+  pathroot: ''
   checksum: 'sha'
 
 redhat-5-els-x86_64.repo:
+  pathroot: ''
   checksum: 'sha'
 
 redhat-5-i386.repo:
+  pathroot: ''
   checksum: 'sha'
 
 redhat-5-vt-i386.repo:
+  pathroot: ''
   checksum: 'sha'
 
 redhat-5-vt-x86_64.repo:
+  pathroot: ''
   checksum: 'sha'
 
 redhat-5-x86_64.repo:
+  pathroot: ''
   checksum: 'sha'
+
+redhat-6-ev-x86_64.repo:
+  pathroot: ''
+
+redhat-6-highavailability-i386.repo:
+  pathroot: ''
+
+redhat-6-highavailability-x86_64.repo:
+  pathroot: ''
+
+redhat-6-i386.repo:
+  pathroot: ''
+
+redhat-6-loadbalancer-i386.repo:
+  pathroot: ''
+
+redhat-6-loadbalancer-x86_64.repo:
+  pathroot: ''
+
+redhat-6-realtime-x86_64.repo:
+  pathroot: ''
+
+redhat-6-scl-x86_64.repo:
+  pathroot: ''
+
+redhat-6-x86_64.repo:
+  pathroot: ''
+
+redhat-7-eus-7.2-x86_64.repo:
+  pathroot: ''
+
+redhat-7-eus-7.3-x86_64.repo:
+  pathroot: ''
+
+redhat-7-eus-7.4-x86_64.repo:
+  pathroot: ''
+
+redhat-7-ev-x86_64.repo:
+  pathroot: ''
+
+redhat-7-highavailability-x86_64.repo:
+  pathroot: ''
+
+redhat-7-jb-eap-x86_64.repo:
+  pathroot: ''
+
+redhat-7-loadbalancer-x86_64.repo:
+  pathroot: ''
+
+redhat-7-rt-x86_64.repo:
+  pathroot: ''
+
+redhat-7-scl-x86_64.repo:
+  pathroot: ''
+
+redhat-7-sso-x86_64.repo:
+  pathroot: ''
+
+redhat-7-x86_64.repo:
+  pathroot: ''
diff --git a/prod.variables.sh b/prod.variables.sh
index 83013a9..38161c7 100644
--- a/prod.variables.sh
+++ b/prod.variables.sh
@@ -1,3 +1,3 @@
-MOUNTPOINT="/mnt/data1/dist/mirror"
+MOUNTPOINT="/mnt/data1/dist"
 REPOS="prod.repos.d"
 REPOSCONF="prod.repos.yaml"
-- 
GitLab


From 138fe75b52f1e48061a8910d82a1241ba7bf8a67 Mon Sep 17 00:00:00 2001
From: Alex Iribarren <Alex.Iribarren@cern.ch>
Date: Thu, 6 Dec 2018 17:37:54 +0100
Subject: [PATCH 2/2] Sync 4 times a day

---
 prod.repos.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/prod.repos.yaml b/prod.repos.yaml
index eda15c8..f78d982 100644
--- a/prod.repos.yaml
+++ b/prod.repos.yaml
@@ -9,7 +9,7 @@
 #    Default: "//"
 
 defaults:
-  schedule: '0 */12 * * *'
+  schedule: '0 */6 * * *'
   checksum: 'sha256'
   pathroot: 'mirror'
   pathcut: '//'
-- 
GitLab