Add openshift repo

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-05-11 16:26:10 +00:00
parent 05a67908b1
commit 62854fc893
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -15,6 +15,14 @@
- packages - packages
- yumrepos - 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 - 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" 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) when: ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel)