]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Add a tool to register prebuilt JEOS images into glance from github
authorSteven Dake <sdake@redhat.com>
Fri, 17 Aug 2012 17:11:21 +0000 (10:11 -0700)
committerSteven Dake <sdake@redhat.com>
Fri, 17 Aug 2012 17:11:43 +0000 (10:11 -0700)
Change-Id: Idb02e892f390516557c9cce3ca0fbab7109d33e1
Signed-off-by: Steven Dake <sdake@redhat.com>
tools/README
tools/glance-jeos-add-from-github.sh [new file with mode: 0755]

index 2864ff85a328b5c29b0f6e38559c698b25de3006..8226d59560a50432c2007b8ad53da981daa6cc69 100644 (file)
@@ -22,6 +22,8 @@ Tools
       note: This tool does not create a network.  Creating a network depends
             on the specific environment, but an example network creation:
 
+sudo nova-manage network create demonet 10.0.0.0/24 1 256 --bridge=demonetbr0
+
 + heat-keystone-setup
     - This tool configures keystone for use with the heat service  the first
        time openstack is installed.
@@ -30,4 +32,6 @@ Tools
     - This script drops the heat database from mysql in the case of developer
       data corruption or erasing heat.
 
-sudo nova-manage network create demonet 10.0.0.0/24 1 256 --bridge=demonetbr0
++ glance-jeos-add-from-github.sh
+    - Register all JEOS images from github prebuilt repositories.
+      This takes about 1 hour on a typical wireless connection.
diff --git a/tools/glance-jeos-add-from-github.sh b/tools/glance-jeos-add-from-github.sh
new file mode 100755 (executable)
index 0000000..9c56ca1
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Downloads JEOS images from github and installs them in glance
+
+for i in F16-x86_64-cfntools F16-i386-cfntools F17-x86_64-cfntools F17-i386-cfntools F16-x86_64-cfntools-openshift U10-x86_64-cfntools
+do
+   echo "Downloading and registering $i with OpenStack glance."
+glance add name=$i is_public=true disk_format=qcow2 container_format=bare copy_from="http://cloud.github.com/downloads/heat-api/prebuilt-jeos-images/$i.qcow2"
+done