From 7808fbe5b4fa0b50ec74d631d5b65442dc627eba Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 16 Aug 2019 11:07:23 +0200 Subject: [PATCH] copr: builders: fixup epel-7 configs Some of the repositories do not use mirrolists. This will be fixed by 'mock-core-configs-30.5-1', so we can remove once that becomes available. --- .../provision/files/mock/epel-7-aarch64.cfg | 87 +++++++++++++++++ .../provision/files/mock/epel-7-ppc64le.cfg | 87 +++++++++++++++++ .../provision/files/mock/epel-7-x86_64.cfg | 95 +++++++++++++++++++ 3 files changed, 269 insertions(+) create mode 100644 roles/copr/backend/files/provision/files/mock/epel-7-aarch64.cfg create mode 100644 roles/copr/backend/files/provision/files/mock/epel-7-ppc64le.cfg create mode 100644 roles/copr/backend/files/provision/files/mock/epel-7-x86_64.cfg diff --git a/roles/copr/backend/files/provision/files/mock/epel-7-aarch64.cfg b/roles/copr/backend/files/provision/files/mock/epel-7-aarch64.cfg new file mode 100644 index 0000000000..c209af8c7e --- /dev/null +++ b/roles/copr/backend/files/provision/files/mock/epel-7-aarch64.cfg @@ -0,0 +1,87 @@ +config_opts['root'] = 'epel-7-aarch64' +config_opts['target_arch'] = 'aarch64' +config_opts['legal_host_arches'] = ('aarch64',) +config_opts['chroot_setup_cmd'] = 'install @buildsys-build' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['releasever'] = '7' +config_opts['yum_install_command'] += ' --disablerepo sclo*' + +config_opts['yum.conf'] = """ +[main] +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= +mdpolicy=group:primary +best=1 +protected_packages= + +# repos +[base] +name=BaseOS +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=aarch64&repo=os +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7,file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7-aarch64 +gpgcheck=1 +skip_if_unavailable=False + +[updates] +name=updates +enabled=1 +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=aarch64&repo=updates +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7,file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7-aarch64 +gpgcheck=1 +skip_if_unavailable=False + +[epel] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=aarch64 +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-7 +gpgcheck=1 +skip_if_unavailable=False + +[extras] +name=extras +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=aarch64&repo=extras +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7,file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7-aarch64 +gpgcheck=1 +skip_if_unavailable=False + +[sclo-rh] +name=sclo-rh +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=aarch64&repo=sclo-rh +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-SIG-SCLo +gpgcheck=1 +includepkgs=devtoolset* +skip_if_unavailable=False + +[testing] +name=epel-testing +enabled=0 +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel7&arch=aarch64 +failovermethod=priority +skip_if_unavailable=False + +[local] +name=local +baseurl=https://kojipkgs.fedoraproject.org/repos/epel7-build/latest/aarch64/ +cost=2000 +enabled=0 +skip_if_unavailable=False + +[epel-debuginfo] +name=epel-debug +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-7&arch=aarch64 +failovermethod=priority +enabled=0 +skip_if_unavailable=False +""" diff --git a/roles/copr/backend/files/provision/files/mock/epel-7-ppc64le.cfg b/roles/copr/backend/files/provision/files/mock/epel-7-ppc64le.cfg new file mode 100644 index 0000000000..06fe923321 --- /dev/null +++ b/roles/copr/backend/files/provision/files/mock/epel-7-ppc64le.cfg @@ -0,0 +1,87 @@ +config_opts['root'] = 'epel-7-ppc64le' +config_opts['target_arch'] = 'ppc64le' +config_opts['legal_host_arches'] = ('ppc64le',) +config_opts['chroot_setup_cmd'] = 'install @buildsys-build' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['releasever'] = '7' +config_opts['yum_install_command'] += ' --disablerepo sclo*' + +config_opts['yum.conf'] = """ +[main] +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= +mdpolicy=group:primary +best=1 +protected_packages= + +# repos +[base] +name=BaseOS +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=ppc64le&repo=os +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7,file:///usr/share/distribution-gpg-keys/centos//RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le +gpgcheck=1 +skip_if_unavailable=False + +[updates] +name=updates +enabled=1 +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=ppc64le&repo=updates +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7,file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le +gpgcheck=1 +skip_if_unavailable=False + +[epel] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=ppc64le +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-7 +gpgcheck=1 +skip_if_unavailable=False + +[extras] +name=extras +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=ppc64le&repo=extras +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7,file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le +gpgcheck=1 +skip_if_unavailable=False + +[sclo-rh] +name=sclo-rh +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=ppc64le&repo=sclo-rh +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-SIG-SCLo +gpgcheck=1 +includepkgs=devtoolset* +skip_if_unavailable=False + +[testing] +name=epel-testing +enabled=0 +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel7&arch=ppc64le +failovermethod=priority +skip_if_unavailable=False + +[local] +name=local +baseurl=https://kojipkgs.fedoraproject.org/repos/epel7-build/latest/ppc64le/ +cost=2000 +enabled=0 +skip_if_unavailable=False + +[epel-debuginfo] +name=epel-debug +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-7&arch=ppc64le +failovermethod=priority +enabled=0 +skip_if_unavailable=False +""" diff --git a/roles/copr/backend/files/provision/files/mock/epel-7-x86_64.cfg b/roles/copr/backend/files/provision/files/mock/epel-7-x86_64.cfg new file mode 100644 index 0000000000..07080271bb --- /dev/null +++ b/roles/copr/backend/files/provision/files/mock/epel-7-x86_64.cfg @@ -0,0 +1,95 @@ +config_opts['root'] = 'epel-7-x86_64' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) +config_opts['chroot_setup_cmd'] = 'install @buildsys-build' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['releasever'] = '7' +config_opts['yum_install_command'] += ' --disablerepo sclo*' + +config_opts['yum.conf'] = """ +[main] +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= +mdpolicy=group:primary +best=1 +protected_packages= + +# repos +[base] +name=BaseOS +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7 +gpgcheck=1 +skip_if_unavailable=False + +[updates] +name=updates +enabled=1 +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7 +gpgcheck=1 +skip_if_unavailable=False + +[epel] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=x86_64 +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-7 +gpgcheck=1 +skip_if_unavailable=False + +[extras] +name=extras +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras +failovermethod=priority +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7 +gpgcheck=1 +skip_if_unavailable=False + +[sclo] +name=sclo +baseurl=http://mirror.centos.org/centos/7/sclo/x86_64/sclo/ +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-SIG-SCLo +gpgcheck=1 +includepkgs=devtoolset* +skip_if_unavailable=False + +[sclo-rh] +name=sclo-rh +mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=sclo-rh +gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-SIG-SCLo +gpgcheck=1 +includepkgs=devtoolset* +skip_if_unavailable=False + +[testing] +name=epel-testing +enabled=0 +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel7&arch=x86_64 +failovermethod=priority +skip_if_unavailable=False + +[local] +name=local +baseurl=https://kojipkgs.fedoraproject.org/repos/epel7-build/latest/x86_64/ +cost=2000 +enabled=0 +skip_if_unavailable=False + +[epel-debuginfo] +name=epel-debug +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-7&arch=x86_64 +failovermethod=priority +enabled=0 +skip_if_unavailable=False +"""