Skip to content
Snippets Groups Projects
Commit c6bb0819 authored by Chris Hines's avatar Chris Hines
Browse files

point CentOS 7 at our local mirror

parent 109dcbfc
No related branches found
No related tags found
1 merge request!33Multiple fixes
# Place this file in your /etc/yum.repos.d/ directory
[monashhpc_base]
name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/os/$basearch/
enabled=1
sslverify=false
[monashhpc_udpates]
name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/updates/$basearch/
enabled=1
sslverify=false
[monashhpc_extras]
name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/extras/$basearch/
enabled=1
sslverify=false
[monashhpc_centosplus]
name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/$releasever/centosplus/$basearch/
enabled=1
sslverify=false
# Place this file in your /etc/yum.repos.d/ directory
[monashhpc_otherstuff]
name=MonashHPC base repository mirrored to control the update process
baseurl=https://consistency0/centos/hpcsystems/$releasever/$basearch/
enabled=1
sslverify=false
gpgcheck=0
--- ---
# this repository was broken on some CentOS images. Remove it.
- name: Removing the RDO repository
file: path=/etc/yum.repos.d/rdo-release.repo state=absent
sudo: true
- name: add gluster repo - name: make sure out repo server is resolvable
copy: src=glusterfs-epel.repo dest=/etc/yum.repos.d/glusterfs-epel.repo lineinfile: dest=/etc/hosts line="118.138.244.7 consistency0"
sudo: true sudo: true
when: ansible_os_family == 'RedHat'
- name: Install epel-release - name: remove default repos
yum: name=epel-release-7-5.noarch state=present file:
path: /usr/yum.repos.d/{{ item }}
state: absent
become: true
become_user: root
with_items:
- CentOS-Base.repo
- CentOS-Debuginfo.repo
- CentOS-fasttrack.repo
- CentOS-Sources.repo
- CentOS-Vault.repo
- foreman.repo
- puppetlabs.repo
- rdo-release.repo
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7"
- name: add our repos
copy: src={{ item }} dest=/etc/yum.repos.d/{{ item }}
sudo: true sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7"
with_items:
- monashhpc_base.repo
- monashhpc_others.repo
#- name: Enable epel #- name: Enable epel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment