Files
octavia/elements/centos-mirror/pre-install.d/00-yum
Michael Johnson 9df9ff9137 Add Amphora base image creation scripts for Octavia
Implements: blueprint base-image

Change-Id: I3e72db6d2f19fe45138758eb0821e27aa1c2542a
2014-12-11 01:31:19 +00:00

14 lines
247 B
Bash
Executable File

#!/bin/bash
mkdir -p /opt/repos
mv /etc/yum.repos.d/* /opt/repos/
cat >> /etc/yum.repos.d/centos.repo <<EOF
[Local-Repository]
name=CentOS \$releasever - \$basearch - Local
baseurl=$CENTOS_MIRROR
enabled=1
gpgcheck=0
priority=1
EOF
yum makecache