
Create virtualenv for compass, point compass site packages to virtualenv, make virtualenv accessable for apache. Change compass executable scripts to use python in env to be virtualenv compatible. Make progress_update daemon use virtualenv. Comment out some health checks that use packages not available to pip, eg, yum, apt since we have other ways to check packages any way. Conflicts: conf/compassd install/compass.sh install/dependency.sh install/prepare.sh misc/apache/compass.wsgi requirements.txt Change-Id: Ib48633601bf238ffc660c4694834897edbe45e07
48 lines
1.4 KiB
Bash
Executable File
48 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo 'Installing Required packages for Compass...'
|
|
sudo yum clean all
|
|
sudo yum update -y --skip-broken
|
|
if [ "$tempest" == "true" ]; then
|
|
sudo yum install -y virt-install libvirt qemu-kvm libxml2-devel libffi-devel libxslt-devel python-devel sshpass openssl-devel
|
|
if [[ "$?" != "0" ]]; then
|
|
echo "failed to install tempest yum dependency"
|
|
exit 1
|
|
fi
|
|
fi
|
|
sudo yum install -y rsyslog logrotate ntp iproute openssh-clients python python-devel git wget syslinux amqp mod_wsgi httpd squid dhcp bind rsync yum-utils xinetd tftp-server gcc net-snmp-utils net-snmp python-daemon unzip openssl openssl098e ca-certificates redis mysql mysql-server mysql-devel python-virtualenv
|
|
if [[ "$?" != "0" ]]; then
|
|
echo "failed to install yum dependency"
|
|
exit 1
|
|
fi
|
|
|
|
# https need the system time is correct.
|
|
sudo service ntpd stop
|
|
ntpdate 0.centos.pool.ntp.org
|
|
sudo service ntpd start
|
|
sudo service ntpd status
|
|
if [[ "$?" != "0" ]]; then
|
|
echo "ntpd is not started"
|
|
exit 1
|
|
fi
|
|
|
|
sudo easy_install --upgrade pip
|
|
if [[ "$?" != "0" ]]; then
|
|
echo "failed to install easy install"
|
|
exit 1
|
|
fi
|
|
|
|
sudo pip install virtualenvwrapper
|
|
|
|
sudo chkconfig httpd on
|
|
sudo chkconfig squid on
|
|
sudo chkconfig xinetd on
|
|
sudo chkconfig dhcpd on
|
|
sudo chkconfig named on
|
|
sudo chkconfig sshd on
|
|
sudo chkconfig rsyslog on
|
|
sudo chkconfig ntpd on
|
|
sudo chkconfig redis on
|
|
sudo chkconfig iptables off
|
|
sudo chkconfig ip6tables off
|