summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2017-02-16 19:53:14 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2017-02-16 19:53:14 +0000
commit9bc43cb2e55933b2fa6defec466e0884e52b3f2f (patch)
tree339a54caf14d2f85d21b01ef297d0766a0425749
parent47c396423d1fbe18101d68d0fd5c31a432558b59 (diff)
Add staging tag repos
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rw-r--r--files/common/fedora-infra-tags-stg.repo6
-rw-r--r--files/common/rhel-infra-tags-stg.repo6
-rw-r--r--tasks/yumrepos.yml16
3 files changed, 28 insertions, 0 deletions
diff --git a/files/common/fedora-infra-tags-stg.repo b/files/common/fedora-infra-tags-stg.repo
new file mode 100644
index 000000000..c635780ca
--- /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 000000000..af5fce70a
--- /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 da4f8933e..15dfad0a2 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