forked from NeCTAR-RC/heat-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglance_image.yaml
29 lines (23 loc) · 1.28 KB
/
glance_image.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#heat-template-version
heat_template_version: 2014-10-16
# This template is the equivalent of the command set:
# $ wget http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
# $ glance image-create --name='cirros image' --container-format=bare --disk-format=qcow2 < cirros-0.3.1-x86_64-disk.img
# or:
# $ glance --os-image-api-version 1 image-create --name='cirros image' --container-format=bare --disk-format=qcow2 --location http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
description: >
NeCTAR Sample Template showing how to create a single Glance image.
*NB* This template does not work on the NeCTAR cloud as the location
attribute is not accessible for security reasons! You will get a 403
error if you try to build this stack.
resources:
glance_image:
# http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Glance::Image
type: OS::Glance::Image
properties:
# Allowed values: ami, ari, aki, bare, ova, ovf
container_format: bare
# Allowed values: ami, ari, aki, vhd, vmdk, raw, qcow2, vdi, iso
disk_format: qcow2
name: cirros image
location: http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img