Resource Type: glance_image
- Defined in:
- lib/puppet/type/glance_image.rb
- Providers:
-
openstack
Overview
This allows manifests to declare an image to be stored in glance.
glance_image { “Ubuntu 12.04 cloudimg amd64”:
ensure => present,
name => "Ubuntu 12.04 cloudimg amd64",
is_public => yes,
container_format => 'ovf',
disk_format => 'qcow2',
source => 'http://uec-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64-disk1.img',
proxy => 'http://127.0.0.1:8080',
min_ram => 1234,
min_disk => 1234,
properties => { 'img_key' => img_value },
image_tag => 'amphora',
}
Known problems / limitations:
* All images are managed by the glance service.
This means that since users are unable to manage their own images via this type,
is_public is really of no use. You can probably hide images this way but that's all.
* As glance image names do not have to be unique, you must ensure that your glance
repository does not have any duplicate names prior to using this.
* Ensure this is run on the same server as the glance-api service.