]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Add baseurl to epel repo files 527/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 29 Jan 2020 19:32:13 +0000 (14:32 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 29 Jan 2020 19:32:13 +0000 (14:32 -0500)
Honestly not even sure how this was working at all but in order for https://github.com/ceph/ceph-cm-ansible/pull/487 to work, the repo file needs to actually point to upstream epel to refresh the yum metadata.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/vars/centos_8.yml
roles/common/vars/redhat_8.yml

index 746ed3ebeb49dcf6b5387b07d4a08209f26f2be8..c958acc8d6a46733443d611afeeef70965e1e8b1 100644 (file)
@@ -3,6 +3,7 @@ epel_repos:
   epel:
     name: "Extra Packages for Enterprise Linux $releasever - $basearch"
     metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
+    baseurl: "{{ epel_mirror_baseurl }}/{{ ansible_distribution_major_version }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch"
     failovermethod: priority
     # ternary requires ansible >= 1.9
     enabled: "{{ enable_epel | ternary(1, 0) }}"
index 8d88ffebea4d4ec74101703c8fa01486069fb4d1..233814ae927dfaababb49b673d263490b9a26e4b 100644 (file)
@@ -7,6 +7,7 @@ epel_repos:
   epel:
     name: "Extra Packages for Enterprise Linux $releasever - $basearch"
     metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
+    baseurl: "{{ epel_mirror_baseurl }}/{{ ansible_distribution_major_version }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch"
     failovermethod: priority
     # ternary requires ansible >= 1.9
     enabled: "{{ enable_epel | ternary(1, 0) }}"