Merge "Disable all Oxygen Jobs to save infra resources"
[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 # Install xpath
7 yum install -y perl-XML-XPath python-pip
8
9 # install crudini command line tool for editing config files
10 yum install -y crudini
11
12 echo '---> Installing non-baseline requirements'
13 yum install -y deltarpm python{,-{crypto,devel,lxml,setuptools}} \
14     @development {lib{xml2,xslt,ffi},openssl}-devel
15
16 echo '---> Updating net link setup'
17 if [ ! -f /etc/udev/rules.d/80-net-setup-link.rules ]; then
18     ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
19 fi
20
21 echo "***************************************************"
22 echo "*   PLEASE RELOAD THIS VAGRANT BOX BEFORE USE     *"
23 echo "***************************************************"
24
25 # vim: sw=4 ts=4 sts=4 et :