dubzland.openstack.openstack_glance role – Install and configure the OpenStack Glance image management services.

Note

This role is part of the dubzland.openstack collection (version 1.1.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install dubzland.openstack.

To use it in a playbook, specify: dubzland.openstack.openstack_glance.

Entry point main – Install and configure the OpenStack Glance image management services.

Synopsis

  • Creates databases and configures users

  • Creates OpenStack services and associated users

  • Creates OpenStack endpoints within OpenStack Keystone

  • Installs required operating system packages

  • Applies desired configuration using templates

Parameters

Parameter

Comments

openstack_glance_db_name

string

Name of the MySQL database created.

Default: "glance"

openstack_glance_db_password

string / required

Database password created for the openstack_glance_db_user.

openstack_glance_db_user

string

Database user created for the OpenStack Glance component.

Default: "glance"

openstack_glance_default_backend

string

Default backend configured for the Image service.

Default: "filesystem"

openstack_glance_file_backend_datadir

path

Local filesystem directory where Glance images are stored.

Default: "/var/lib/glance/images"

openstack_glance_file_backend_enabled

boolean

Controls whether the filesystem backend is enabled.

Choices:

  • false

  • true ← (default)

openstack_glance_packages

list / elements=string

List of packages installed on the controller for the Glance component.

Default: ["glance"]

openstack_glance_service_description

string

Human-readable description for the OpenStack Glance service within Keystone.

Default: "OpenStack Image"

openstack_glance_service_password

string / required

Service password assigned to the openstack_glance_service_user.

openstack_glance_service_user

string

User created in OpenStack Keystone for the Glance component.

Default: "glance"

openstack_glance_services

list / elements=string

Services to be restarted during install (and/or configuration changes).

Default: ["glance-api"]

openstack_glance_swift_backend_container

string

OpenStack Swift container to hold Glance images.

Default: "glance_images"

openstack_glance_swift_backend_enabled

boolean

Controls whether the swift backend is enabled.

Choices:

  • false ← (default)

  • true

openstack_glance_worker_count

integer

Limit the number of workers spawned.