a044f9f3c5
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
21 lines
658 B
Bash
Executable File
21 lines
658 B
Bash
Executable File
#!/bin/bash -x
|
|
# create a bridge named 'installation' so that compass and pxeboot vm are in the
|
|
# same l2 network.
|
|
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
|
|
source compass-core/install/install.conf.template
|
|
/bin/bash -x compass-core/install/install.sh || exit $?
|
|
echo "cache_peer 10.145.81.137 parent 3128 3130 default" >> /etc/squid/squid.conf
|
|
service squid restart
|
|
service squid status |grep running || exit $?
|
|
sleep 5
|