compass-core/misc/ci/prepare_node_compass.sh
zhaoxinyu bd9fd8a83c move packages to dependency.sh
move packages installation to dependency.sh.
CI image preparation every night can benefit from it too.

Change-Id: Iab64ec9b0044bfff1cf7776b8cf57d0cf2ca8907
2014-11-20 03:55:51 -08:00

29 lines
1.2 KiB
Bash
Executable File

#!/bin/bash -x
echo 0 > /selinux/enforce
yum clean all
yum -y update --skip-broken
yum install -y virt-install libvirt qemu-kvm figlet rsyslog logrotate iproute openssh-clients python git wget python-setuptools python-netaddr python-flask python-flask-sqlalchemy python-amqplib amqp python-paramiko python-mock dhcp bind rsync yum-utils xinetd tftp-server gcc net-snmp-utils net-snmp net-snmp-python python-daemon unzip openssl openssl098e createrepo mkisofs python-cheetah python-simplejson python-urlgrabber PyYAML Django cman debmirror pykickstart libxml2-devel libxslt-devel python-devel sshpass bc
service libvirtd start
sed -i "s/Defaults requiretty/#Defaults requiretty/" /etc/sudoers
brctl show |grep installation > /dev/null
if [[ $? -eq 0 ]] ; then
echo "bridge already exists"
else
brctl addbr installation
brctl addif installation eth1
ifconfig eth1 up
dhclient -r eth1
dhclient -r installation
dhclient installation
fi
git clone http://git.openstack.org/stackforge/compass-core -b dev/experimental
cd compass-core
source install/install.conf.template
source install/install.conf
source install/setup_env.sh
source install/dependency.sh
source install/prepare.sh
sync
sleep 5
echo "image preparation done"