salt.modules.glance

Module for handling openstack glance calls.

This module is not usable until the following are specified either in a pillar or in the minion's config file:

keystone.user: admin keystone.password: verybadpass keystone.tenant: admin keystone.tenant_id: f80919baedab48ec8931f200c65a50df keystone.insecure: False #(optional) keystone.auth_url: 'http://127.0.0.1:5000/v2.0/'

salt.modules.glance.image_create(**kwargs)

Create an image (nova image-create)

CLI Example:

salt '*' nova.image_create name=f16-jeos is_public=true                  disk_format=qcow2 container_format=ovf                  copy_from=http://berrange.fedorapeople.org/images/2012-02-29/f16-x86_64-openstack-sda.qcow2

For all possible values, run:

glance help image-create
salt.modules.glance.image_delete(id=None, name=None)

Delete an image (nova image-delete)

CLI Examples:

salt '*' nova.image_delete c2eb2eb0-53e1-4a80-b990-8ec887eae7df
salt '*' nova.image_delete id=c2eb2eb0-53e1-4a80-b990-8ec887eae7df
salt '*' nova.image_delete name=f16-jeos
salt.modules.glance.image_list(id=None)

Return a list of available images (nova image-list)

CLI Example:

salt '*' nova.image_list
salt.modules.glance.image_show(id=None, name=None)

Return details about a specific image (nova image-show)

CLI Example:

salt '*' nova.image_get

Comments

comments powered by Disqus

Parent topic

Previous topic

salt.modules.git

Next topic

salt.modules.grains