Skip to content

Commit

Permalink
vagrant: Fix CentOS6 mirrorlink issue (#1765)
Browse files Browse the repository at this point in the history
* vagrant: Fix CentOS6 mirrorlink issue

* fix centos mirror

Co-authored-by: George Adams <[email protected]>
  • Loading branch information
Willsparker and gdams authored Dec 17, 2020
1 parent 8ab6a37 commit ce6b868
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible/Dockerfile.CentOS6
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM centos:6.9
ARG user=jenkins

# Install Python 3
RUN yum -y update; yum clean all; \
RUN sed -i -e 's!mirrorlist!#mirrorlist!g' /etc/yum.repos.d/CentOS-Base.repo; \
sed -i -e 's!#baseurl=http://mirror.centos.org/centos/\$releasever!baseurl=https://vault.centos.org/6.10/!g' /etc/yum.repos.d/CentOS-Base.repo; \
yum -y update; yum clean all; \
yum -y install gcc openssl-devel bzip2-devel sqlite-devel sudo wget; \
cd /usr/src; \
wget -q https://www.python.org/ftp/python/3.6.10/Python-3.6.10.tgz; \
Expand Down
2 changes: 2 additions & 0 deletions ansible/Vagrantfile.CentOS6
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# vi: set ft=ruby :

$script = <<SCRIPT
sudo sed -i -e 's!mirrorlist!#mirrorlist!g' /etc/yum.repos.d/CentOS-Base.repo
sudo sed -i -e 's!#baseurl=http://mirror.centos.org/centos/\$releasever!baseurl=https://vault.centos.org/6.10/!g' /etc/yum.repos.d/CentOS-Base.repo
sudo yum -y update
sudo yum install -y libselinux-python
sudo yum install -y ansible
Expand Down

0 comments on commit ce6b868

Please sign in to comment.