Update Cirros to 0.3.2
Update Cirros image install to use newest version (0.3.2). Change-Id: Ifedeec1c6660bde11c0833e2e50d3b316170fe76 Closes-Bug: #1301901
This commit is contained in:
@@ -49,7 +49,7 @@ class openstack::provision(
|
|||||||
|
|
||||||
## Glance
|
## Glance
|
||||||
$image_name = 'cirros',
|
$image_name = 'cirros',
|
||||||
$image_source = 'http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img',
|
$image_source = 'http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img',
|
||||||
$image_ssh_user = 'cirros',
|
$image_ssh_user = 'cirros',
|
||||||
|
|
||||||
## Neutron
|
## Neutron
|
||||||
|
@@ -12,7 +12,7 @@ describe 'openstack::provision' do
|
|||||||
let :params do
|
let :params do
|
||||||
{
|
{
|
||||||
:image_name => 'cirros',
|
:image_name => 'cirros',
|
||||||
:image_source => 'http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img',
|
:image_source => 'http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img',
|
||||||
:image_name_alt => 'cirros2',
|
:image_name_alt => 'cirros2',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@@ -40,7 +40,7 @@ describe 'openstack::provision' do
|
|||||||
let :params do
|
let :params do
|
||||||
{
|
{
|
||||||
:image_name => 'cirros',
|
:image_name => 'cirros',
|
||||||
:image_source => 'http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img',
|
:image_source => 'http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@@ -6,10 +6,10 @@ source <%= @rc_file_path %>
|
|||||||
<% if @image_type == 'cirros' -%>
|
<% if @image_type == 'cirros' -%>
|
||||||
|
|
||||||
# Grab an image. Cirros is a nice small Linux that's easy to deploy
|
# Grab an image. Cirros is a nice small Linux that's easy to deploy
|
||||||
wget --quiet http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
|
wget --quiet http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
|
||||||
|
|
||||||
# Add it to glance so that we can use it in Openstack
|
# Add it to glance so that we can use it in Openstack
|
||||||
glance add name='cirros image' is_public=true container_format=bare disk_format=qcow2 < cirros-0.3.1-x86_64-disk.img
|
glance add name='cirros image' is_public=true container_format=bare disk_format=qcow2 < cirros-0.3.2-x86_64-disk.img
|
||||||
|
|
||||||
# Caputre the Image ID so taht we can call the right UUID for this image
|
# Caputre the Image ID so taht we can call the right UUID for this image
|
||||||
IMAGE_ID=`glance index | grep 'cirros image' | head -1 | awk -F' ' '{print $1}'`
|
IMAGE_ID=`glance index | grep 'cirros image' | head -1 | awk -F' ' '{print $1}'`
|
||||||
|
Reference in New Issue
Block a user