From 9bc43cb2e55933b2fa6defec466e0884e52b3f2f Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 16 Feb 2017 19:53:14 +0000 Subject: [PATCH] Add staging tag repos Signed-off-by: Patrick Uiterwijk --- files/common/fedora-infra-tags-stg.repo | 6 ++++++ files/common/rhel-infra-tags-stg.repo | 6 ++++++ tasks/yumrepos.yml | 16 ++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 files/common/fedora-infra-tags-stg.repo create mode 100644 files/common/rhel-infra-tags-stg.repo diff --git a/files/common/fedora-infra-tags-stg.repo b/files/common/fedora-infra-tags-stg.repo new file mode 100644 index 0000000000..c635780cae --- /dev/null +++ b/files/common/fedora-infra-tags-stg.repo @@ -0,0 +1,6 @@ +[infrastructure-tags] +name=Fedora Infrastructure staging tag $releasever - $basearch +baseurl=http://infrastructure.fedoraproject.org/repo/infra/f$releasever-infra-stg/$basearch/ +enabled=1 +gpgcheck=1 +gpgkey=http://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS diff --git a/files/common/rhel-infra-tags-stg.repo b/files/common/rhel-infra-tags-stg.repo new file mode 100644 index 0000000000..af5fce70ab --- /dev/null +++ b/files/common/rhel-infra-tags-stg.repo @@ -0,0 +1,6 @@ +[infrastructure-tags] +name=Fedora Infrastructure tag $releasever - $basearch +baseurl=http://infrastructure.fedoraproject.org/repo/infra/epel$releasever-infra-stg/$basearch/ +enabled=1 +gpgcheck=1 +gpgkey=http://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index da4f8933ef..15dfad0a20 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -65,6 +65,14 @@ - packages - yumrepos +- name: add infrastructure STAGING tags repo - RHEL + copy: src="{{ files }}/common/rhel-infra-tags-stg.repo" dest="/etc/yum.repos.d/infra-tags-stg.repo" + when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and env == 'staging' + tags: + - config + - packages + - yumrepos + - name: add infrastructure tags repo - Fedora copy: src="{{ files }}/common/fedora-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo" when: ansible_distribution == 'Fedora' @@ -72,3 +80,11 @@ - config - packages - yumrepos + +- name: add infrastructure STAGING tags repo - Fedora + copy: src="{{ files }}/common/fedora-infra-tags-stg.repo" dest="/etc/yum.repos.d/infra-tags-stg.repo" + when: ansible_distribution == 'Fedora' and env == 'staging' + tags: + - config + - packages + - yumrepos