]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Don't use baseurl for epel at all 544/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 13 Mar 2020 22:40:54 +0000 (18:40 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 13 Mar 2020 22:40:54 +0000 (18:40 -0400)
Despite having a mirrorlist present in the repo file, if contacting the baseurl fails, the yum transaction fails which causes our jobs to fail.  Let's try *just* using a mirrorlist.

See https://github.com/ceph/ceph-cm-ansible/pull/542#issuecomment-598924481

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/defaults/main.yml

index 6d1b9df744390aba034ac7540e5ce6570e7e2bf7..5c922010cd8627cfef264748b0f183567a5ff7bc 100644 (file)
@@ -17,7 +17,6 @@ epel_mirror_baseurl: "http://dl.fedoraproject.org/pub/epel"
 epel_repos:
   epel:
     name: "Extra Packages for Enterprise Linux"
-    baseurl: "{{ epel_mirror_baseurl }}/{{ ansible_distribution_major_version }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch"
     mirrorlist: file:///etc/yum.repos.d/epel-mirrorlist
     failovermethod: priority
     # ternary requires ansible >= 1.9
@@ -25,7 +24,6 @@ epel_repos:
     gpgcheck: 0
   epel-testing:
     name: "Extra Packages for Enterprise Linux - Testing"
-    baseurl: "{{ epel_mirror_baseurl }}/testing/{{ ansible_distribution_major_version }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch"
     mirrorlist: file:///etc/yum.repos.d/epel-testing-mirrorlist
     failovermethod: priority
     enabled: 0