compass-adapters/cobbler/snippets/kickstart_local_repo
xiaodongwang 0f77a082a0 fix remove no local repo bug
Change-Id: If1159c022787ff0373be45d228f68292e399aa9d
2014-10-22 16:48:25 -07:00

25 lines
442 B
Plaintext

mkdir -p /tmp/repo_backup
mv /etc/yum.repos.d/* /tmp/repo_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
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