rename local repo snippet and add failover repo support

Change-Id: I12130fe0bc9b8f39d755495348546a308dd652d5
This commit is contained in:
xiaodongwang 2014-10-12 22:46:09 -07:00
parent e5e70d29e4
commit 34dee64015
2 changed files with 8 additions and 7 deletions

View File

@ -95,7 +95,8 @@ chkconfig ip6tables off
$SNIPPET('kickstart_yum.conf')
#if $getVar('local_repo', '') != ''
$SNIPPET('local_repo')
#set $kickstart_local_repo = "kickstart_%s" % $local_repo
$SNIPPET($kickstart_local_repo)
#end if
$SNIPPET('kickstart_ssh')
$SNIPPET('kickstart_ntp')

View File

@ -1,21 +1,21 @@
mkdir /tmp/backup
mv /etc/yum.repos.d/* /tmp/backup
cat << EOF > /etc/yum.repos.d/Compass.repo
[compass_repo]
name=Compass yum repo
baseurl=$local_repo/compass_repo/
enabled=1
gpgcheck=0
priority=1
proxy=_none_
EOF
cat << EOF > /root/.gemrc
---
cat << EOF > /etc/gemrc
gem: --no-ri --no-rdoc
:backtrace: false
:benchmark: false
:bulk_threshold: 1000
:sources:
- http://gems.rubyforge.org/
- $local_repo/gem_repo/
:update_sources: true
:verbose: true
EOF
EOF