Merge "Adding nodepool compatibility with Fedora."
This commit is contained in:
commit
dde3d047d7
@ -18,10 +18,18 @@
|
|||||||
|
|
||||||
mkdir -p ~/cache/files
|
mkdir -p ~/cache/files
|
||||||
mkdir -p ~/cache/pip
|
mkdir -p ~/cache/pip
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get \
|
|
||||||
--option "Dpkg::Options::=--force-confold" \
|
if [ -f /usr/bin/yum ]; then
|
||||||
--assume-yes install build-essential python-dev \
|
sudo yum -y install python-devel make automake gcc gcc-c++ kernel-devel redhat-lsb-core
|
||||||
linux-headers-virtual linux-headers-`uname -r`
|
elif [ -f /usr/bin/apt-get ]; then
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive apt-get \
|
||||||
|
--option "Dpkg::Options::=--force-confold" \
|
||||||
|
--assume-yes install build-essential python-dev \
|
||||||
|
linux-headers-virtual linux-headers-`uname -r`
|
||||||
|
else
|
||||||
|
echo "Unsupported distro."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf ~/workspace-cache
|
rm -rf ~/workspace-cache
|
||||||
mkdir -p ~/workspace-cache
|
mkdir -p ~/workspace-cache
|
||||||
@ -61,7 +69,8 @@ git clone https://review.openstack.org/p/openstack/tempest
|
|||||||
git clone https://review.openstack.org/p/stackforge/pecan
|
git clone https://review.openstack.org/p/stackforge/pecan
|
||||||
git clone https://review.openstack.org/p/stackforge/wsme
|
git clone https://review.openstack.org/p/stackforge/wsme
|
||||||
|
|
||||||
. /etc/lsb-release
|
DISTRIB_CODENAME=`lsb_release -sc`
|
||||||
|
|
||||||
cd /opt/nodepool-scripts/
|
cd /opt/nodepool-scripts/
|
||||||
python ./devstack-cache.py $DISTRIB_CODENAME
|
python ./devstack-cache.py $DISTRIB_CODENAME
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user