summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files/openshift/openshift.repo4
-rw-r--r--tasks/yumrepos.yml8
2 files changed, 12 insertions, 0 deletions
diff --git a/files/openshift/openshift.repo b/files/openshift/openshift.repo
new file mode 100644
index 000000000..91dc0c0f0
--- /dev/null
+++ b/files/openshift/openshift.repo
@@ -0,0 +1,4 @@
+[rhel7-openshift-3.4]
+name = rhel7 openshift 3.4 $basearch
+baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-openshift-3.4-rpms/
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml
index b6031b1f7..af57783e7 100644
--- a/tasks/yumrepos.yml
+++ b/tasks/yumrepos.yml
@@ -15,6 +15,14 @@
- packages
- yumrepos
+- name: put openshift 3.4 repo on os- systems
+ copy: src="{{ files }}/openshift/openshift.repo" dest="/etc/yum.repos.d/openshift.repo"
+ when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == 7 and inventory_hostname.startswith('os-')
+ tags:
+ - config
+ - packages
+ - yumrepos
+
- name: put epel repos on el systems
copy: src="{{ files }}/common/epel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/epel{{ ansible_distribution_major_version }}.repo"
when: ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel)