From a6d41cf1b8e0a80ec40dd601fd9f3223c3e723ce Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 8 May 2018 20:01:28 +0000 Subject: [PATCH] and also fix the secondary stuff --- files/common/fedora-updates-testing.repo-secondary | 12 ++++++++++++ files/common/fedora-updates.repo-secondary | 12 ++++++++++++ tasks/yumrepos.yml | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/files/common/fedora-updates-testing.repo-secondary b/files/common/fedora-updates-testing.repo-secondary index 4359d0a094..2f7b822da7 100644 --- a/files/common/fedora-updates-testing.repo-secondary +++ b/files/common/fedora-updates-testing.repo-secondary @@ -1,7 +1,11 @@ [updates-testing] name=Fedora $releasever - $basearch - Test Updates failovermethod=priority +{% if ansible_distribution_major_version|int >27 %} +baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/testing/$releasever/Everything/$basearch/ +{% else %} baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/testing/$releasever/$basearch/ +{% endif %} #metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f$releasever&arch=$basearch enabled=0 gpgcheck=1 @@ -10,7 +14,11 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch [updates-testing-debuginfo] name=Fedora $releasever - $basearch - Test Updates Debug failovermethod=priority +{% if ansible_distribution_major_version|int >27 %} +baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/testing/$releasever/Everything/$basearch/debug/ +{% else %} baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/testing/$releasever/$basearch/debug/ +{% endif %} #metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-debug-f$releasever&arch=$basearch enabled=0 gpgcheck=1 @@ -19,7 +27,11 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch [updates-testing-source] name=Fedora $releasever - Test Updates Source failovermethod=priority +{% if ansible_distribution_major_version|int >27 %} +baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/testing/$releasever/Everything/SRPMS/ +{% else %} baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/testing/$releasever/SRPMS/ +{% endif %} #metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-source-f$releasever&arch=$basearch enabled=0 gpgcheck=1 diff --git a/files/common/fedora-updates.repo-secondary b/files/common/fedora-updates.repo-secondary index bbd9f3483d..11f62f55f3 100644 --- a/files/common/fedora-updates.repo-secondary +++ b/files/common/fedora-updates.repo-secondary @@ -1,7 +1,11 @@ [updates] name=Fedora $releasever - $basearch - Updates failovermethod=priority +{% if ansible_distribution_major_version|int >27 %} +baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/$releasever/Everything/$basearch/ +{% else %} baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/$releasever/$basearch/ +{% endif %} #metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch enabled=1 gpgcheck=1 @@ -10,7 +14,11 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch [updates-debuginfo] name=Fedora $releasever - $basearch - Updates - Debug failovermethod=priority +{% if ansible_distribution_major_version|int >27 %} +baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/$releasever/Everything/$basearch/debug/ +{% else %} baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/$releasever/$basearch/debug/ +{% endif %} #metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch enabled=0 gpgcheck=1 @@ -19,7 +27,11 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch [updates-source] name=Fedora $releasever - Updates Source failovermethod=priority +{% if ansible_distribution_major_version|int >27 %} baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/$releasever/SRPMS/ +{% else %} +baseurl=http://infrastructure.fedoraproject.org/pub/fedora-secondary/updates/$releasever/Everything/SRPMS/ +{% endif %} #metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch enabled=0 gpgcheck=1 diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index ea8780e7f1..e9e554e986 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -44,7 +44,7 @@ - yumrepos - name: put fedora repos on secondary architecture systems - copy: src="{{ files }}/common/{{ item }}-secondary" dest="/etc/yum.repos.d/{{ item }}" + template: src="{{ files }}/common/{{ item }}-secondary" dest="/etc/yum.repos.d/{{ item }}" with_items: - fedora.repo - fedora-updates.repo