Skip to content
Snippets Groups Projects
Commit 8694aded authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

feat: Add shell provisioner to fix yum base url

fix yum install failures by fixing the baseurl via shell provisioners
temporarily until we upgrade the base OS
parent 76fd6246
No related branches found
No related tags found
2 merge requests!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.,!103Feat ci proxy builds
......@@ -36,6 +36,13 @@ source "openstack" "image" {
build {
sources = ["source.openstack.image"]
provisioner "shell" {
inline = [
"sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*",
"sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*"
]
}
provisioner "ansible" {
use_proxy = false
user = var.ssh_username
......
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