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
1 merge request!3Change compute reference to login
......@@ -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