scholzj / terraform-aws-minikube

Terraform module for single node Kubernetes instance bootstrapped using kubeadm
Apache License 2.0
65 stars 45 forks source link

CentOS 7 Repo Archive unreachable #13

Open sarasensible opened 4 months ago

sarasensible commented 4 months ago

Hello! I'm back! We are still on a fork of your repo since my previous issue was not addressed and at this point we have a bunch of custom code anyways.

That being said, this would be a problem for anyone using your repo, the CentOS 7 repo archive is no longer reachable as of yesterday July 1, 2024.

Updates fail with:

Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=genclo error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"

If you take a look at https://serverfault.com/a/1161904 you will see the workaround is to use vault.centos.org instead.

So right about here - https://github.com/SensibleWeather/terraform-aws-minikube/blob/master/scripts/init-aws-minikube.sh#L86 Add these lines (sourced from https://serverfault.com/a/1161847 )

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

and the yum install should work.

wandy001 commented 4 months ago

tq madam