Merge "Remove tools/glance-jeos-add-from-github.sh"
This commit is contained in:
commit
50ab034b0a
@ -31,7 +31,3 @@ sudo nova-manage network create demonet 10.0.0.0/24 1 256 --bridge=demonetbr0
|
||||
+ heat-db-drop
|
||||
- This script drops the heat database from mysql in the case of developer
|
||||
data corruption or erasing heat.
|
||||
|
||||
+ glance-jeos-add-from-github.sh
|
||||
- Register all JEOS images from github prebuilt repositories.
|
||||
This takes about 1 hour on a typical wireless connection.
|
||||
|
@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Downloads JEOS images from github and installs them in glance
|
||||
|
||||
DISK_FORMAT="qcow2"
|
||||
INDEX_URL="https://github.com/heat-api/prebuilt-jeos-images/downloads"
|
||||
DOWNLOAD_URL="http://cloud.github.com/downloads/heat-api/prebuilt-jeos-images"
|
||||
IMAGES=$(curl -s ${INDEX_URL} | grep 'href="/downloads/heat-api/prebuilt-jeos-images' 2>/dev/null | grep ${DISK_FORMAT} | cut -d">" -f2 | cut -d"<" -f1)
|
||||
|
||||
for i in ${IMAGES}
|
||||
do
|
||||
NAME=$(echo $i | sed "s/\.${DISK_FORMAT}//")
|
||||
echo "Downloading and registering $i with OpenStack glance as ${NAME}"
|
||||
if glance index | grep -q "\s${NAME}\s"
|
||||
then
|
||||
echo "WARNING : ${NAME} already exists, skipping"
|
||||
else
|
||||
echo "Downloading from ${DOWNLOAD_URL}/$i"
|
||||
glance add name=${NAME} is_public=true disk_format=${DISK_FORMAT} container_format=bare copy_from="${DOWNLOAD_URL}/$i"
|
||||
fi
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user