Merge "Expand rendered image name to include secs and ms"
[releng/builder.git] / packer / provision / devstack.sh
1 #!/bin/bash
2
3 # force any errors to cause the script and job to end in failure
4 set -xeu -o pipefail
5
6 # add in a test copr repo
7 wget http://copr.fedoraproject.org/coprs/tykeal/odl-updates/repo/epel-7/tykeal-odl-updates-epel-7.repo -O /etc/yum.repos.d/tykeal-odl-updates-epel-7.repo
8 # Install xpath
9 yum install -y perl-XML-XPath python-pip python-six
10
11 # install crudini command line tool for editing config files
12 yum install -y crudini
13
14 echo '---> Installing non-baseline requirements'
15 yum install -y deltarpm python{,-{crypto,devel,lxml,setuptools}} \
16     @development {lib{xml2,xslt,ffi},openssl}-devel
17
18 echo '---> Updating net link setup'
19 if [ ! -f /etc/udev/rules.d/80-net-setup-link.rules ]; then
20     ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
21 fi
22
23 echo "***************************************************"
24 echo "*   PLEASE RELOAD THIS VAGRANT BOX BEFORE USE     *"
25 echo "***************************************************"
26
27 # vim: sw=4 ts=4 sts=4 et :