summaryrefslogtreecommitdiffstats
path: root/ci/odl/juju-deployer/scripts/glance.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2015-11-11 13:37:41 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2015-11-11 13:38:31 -0600
commitb7b23a46f98bf279fd6b31ed5928e3045cfc746e (patch)
tree557d8e5444cd877969fa43fa16101e718ce72d22 /ci/odl/juju-deployer/scripts/glance.sh
parentef0bf9ac1985e1ba1911fa2d6020a1cbf55cfde2 (diff)
added new scripts to configure openstac after install.
Change-Id: Ia5f87da468505ba89a0b61fa92c020caba37b2a2 Author: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/odl/juju-deployer/scripts/glance.sh')
-rwxr-xr-xci/odl/juju-deployer/scripts/glance.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ci/odl/juju-deployer/scripts/glance.sh b/ci/odl/juju-deployer/scripts/glance.sh
new file mode 100755
index 00000000..d02f6d06
--- /dev/null
+++ b/ci/odl/juju-deployer/scripts/glance.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+. ~/admin-openrc
+
+wget -P /tmp/images http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
+wget -P /tmp/images http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
+glance image-create --name ubuntu-trusty-daily --disk-format qcow2 --container-format bare --owner admin --file /tmp/imaes/trusty-server-cloudimg-amd64-disk1.img --checksum $(grep trusty-server-cloudimg-amd64-disk1.img MD5SUMS | cut -d " " -f 1) --is-public True
+glance image-create --name "cirros-0.3.3-x86_64" --file /tmp/images/cirros-0.3.3-x86_64-disk.img --disk-format qcow2 --container-format bare --is-public True -owner admin --progress
+rm -rf /tmp/images