Skip to content
Snippets Groups Projects
Commit 29682935 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 856ba0f9
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,13 @@ source "openstack" "image" { ...@@ -36,6 +36,13 @@ source "openstack" "image" {
build { build {
sources = ["source.openstack.image"] 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" { provisioner "ansible" {
use_proxy = false use_proxy = false
user = var.ssh_username 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