Update devstack vagrant definition for private cloud
[releng/builder.git] / vagrant / ovsdb-devstack / bootstrap.sh
index 47e2af60c056928e743c45f4418c398a63b2ff27..06463517d3d19f6f68ddca0027234e5354062267 100644 (file)
@@ -1,16 +1,10 @@
 #!/bin/bash
 
-# enable enforcing mode from the very start
-setenforce enforcing
-
-# configure system for enforcing mode on next boot
-sed -i 's/SELINUX=permissive/SELINUX=enforcing/' /etc/selinux/config
-
-yum clean all
-yum update -y
-yum install -q -y deltarpm python python-crypto python-devel python-lxml python-setuptools @development-tools libxml2-devel libxslt-devel libffi-devel
-yum install -q -y java git sudo openssl-devel
+echo '---> Installing non-baseline requirements'
+yum install -q -y deltarpm python{,-{crypto,devel,lxml,setuptools}} \
+    @development {lib{xml2,xslt,ffi},openssl}-devel
 
+echo '---> Updating net link setup'
 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
@@ -18,3 +12,5 @@ fi
 echo "***************************************************"
 echo "*   PLEASE RELOAD THIS VAGRANT BOX BEFORE USE     *"
 echo "***************************************************"
+
+# vim: sw=4 ts=4 sts=4 et :