summaryrefslogtreecommitdiffstats
path: root/compass-deck/misc/ci/test-install.sh
blob: 22fd5d41146f48c6e0b1fd5f53812d95b4f961a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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
fi

ifconfig installation 172.16.0.1 broadcast 172.16.0.0 netmask 255.255.0.0 up
ifconfig eth1 up

# kill the dhcp service started by libvirt to avoid conflict with dhcpd
killall dnsmasq
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