salt.modules.glanceng
Glance module for interacting with OpenStack Glance
New in version 2018.3.0.
:depends:shade
Example configuration
glance: cloud: default
glance: auth: username: admin password: password123 user_domain_name: mydomain project_name: myproject project_domain_name: myproject auth_url: https://example.org:5000/v3 identity_api_version: 3
-
Compare two dicts returning only keys that exist in the first dict and are different in the second one
salt.modules.glanceng.compare_changes(obj, **kwargs)
-
Return an openstack_cloud
salt.modules.glanceng.get_openstack_cloud(auth=None)
-
Return an operator_cloud
salt.modules.glanceng.get_operator_cloud(auth=None)
-
Create an image
CLI Example:
salt '*' glanceng.image_create name=cirros file=cirros.raw disk_format=raw salt '*' glanceng.image_create name=cirros file=cirros.raw disk_format=raw hw_scsi_model=virtio-scsi hw_disk_bus=scsi
salt.modules.glanceng.image_create(auth=None, **kwargs)
-
Delete an image
CLI Example:
salt '*' glanceng.image_delete name=image1 salt '*' glanceng.image_delete name=0e4febc2a5ab4f2c8f374b054162506d
salt.modules.glanceng.image_delete(auth=None, **kwargs)
-
Get a single image
CLI Example:
salt '*' glanceng.image_get name=image1 salt '*' glanceng.image_get name=0e4febc2a5ab4f2c8f374b054162506d
salt.modules.glanceng.image_get(auth=None, **kwargs)
-
List images
CLI Example:
salt '*' glanceng.image_list salt '*' glanceng.image_list
salt.modules.glanceng.image_list(auth=None, **kwargs)
-
Search for images
CLI Example:
salt '*' glanceng.image_search name=image1 salt '*' glanceng.image_search
salt.modules.glanceng.image_search(auth=None, **kwargs)
-
Call functions to create Shade cloud objects in __context__ to take advantage of Shade's in-memory caching across several states
salt.modules.glanceng.setup_clouds(auth=None)
-
Update properties for an image
CLI Example:
salt '*' glanceng.update_image_properties name=image1 hw_scsi_model=virtio-scsi hw_disk_bus=scsi salt '*' glanceng.update_image_properties name=0e4febc2a5ab4f2c8f374b054162506d min_ram=1024
salt.modules.glanceng.update_image_properties(auth=None, **kwargs)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.glanceng.html