forked from dave-tucker/odl-openstack-ci
-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap.sh
executable file
·38 lines (33 loc) · 1.29 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Check for Fedora vs. Ubuntu
if [ -f "/etc/debian_version" ]; then
IS_UBUNTU=1
else
IS_FEDORA=1
fi
# Add the jenkins user, and setup passwordless sudo
groupadd jenkins
adduser -g jenkins jenkins
echo "jenkins ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
if [ "$IS_FEDORA" == "1" ]; then
yum install -q -y deltarpm
yum install -q -y gcc git python python-crypto python-devel \
python-lxml python-setuptools yum-utils \
libxml2-devel libxslt-devel libffi-devel
yum group install -q -y "Development Tools"
if [ ! -f /etc/udev/rules.d/80-net-setup-link.rules ]; then
ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
fi
yum install -q -y wireshark xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils wireshark-gnome
# Link root’s .XAutority to vagrant's
ln -sf /home/vagrant/.Xauthority /root/
else
apt-get update -y
apt-get install -y git python python-setuptools libxslt1-dev \
libxml2-dev libffi-dev python-lxml python-crypto \
python-dev git
apt-get install -y wireshark
fi
echo "***************************************************"
echo "* PLEASE RELOAD THIS VAGRANT BOX BEFORE USE *"
echo "***************************************************"