diff --git a/templates/buildtools.repo.j2 b/templates/buildtools.repo.j2 index 08e1fa7..d963b41 100644 --- a/templates/buildtools.repo.j2 +++ b/templates/buildtools.repo.j2 @@ -1,26 +1,21 @@ -{% if ansible_distribution_major_version == '7' and not ansible_architecture == 'x86_64' %} -{% set contentdir = 'altarch' %} -{% else %} -{% set contentdir = 'centos' %} -{% endif %} -{% if mbs_env == 'prod' %} +{% if centos_infra_env == 'prod' %} [centos-buildtools-common] -name=CentOS koji buildtools repository -baseurl=http://mirror.centos.org/{{ contentdir }}/$releasever/infra/$basearch/buildtools-common/ +name=CentOS buildtools repository +baseurl=http://mirror.stream.centos.org/SIGs/$releasever/infra/$basearch/buildtools-common/ enabled=1 gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/{{ mbs_buildtools_repo_gpgkey }} -{% elif mbs_env == 'stg' %} +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Infra +{% elif centos_infra_env == 'stg' %} [centos-buildtools-common] -name=CentOS STG koji buildtools repository -baseurl=http://buildlogs.centos.org/centos/$releasever/infra/$basearch/buildtools-common/ +name=CentOS STG buildtools repository +baseurl=https://buildlogs.centos.org/centos/$releasever/infra/$basearch/buildtools-common/ enabled=1 gpgcheck=0 {% else %} [centos-buildtools-common] -name=CentOS dev koji buildtools repository -baseurl=http://repo.dev.centos.org/$releasever/infra/buildtools-common/$basearch/ +name=CentOS dev buildtools repository +baseurl=https://repo.dev.centos.org/$releasever/infra/buildtools-common/$basearch/ enabled=1 gpgcheck=0 -{% endif %} \ No newline at end of file +{% endif %}