dubzland.openstack.openstack_swift role – Install and configure the OpenStack Swift object storage component.

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_swift.

Entry point main – Install and configure the OpenStack Swift object storage component.

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

  • Creates rings and storage objects

Parameters

Parameter

Comments

openstack_swift_account_server_port

integer

Port number storage node account services should listen on.

Default: 6202

openstack_swift_container_server_port

integer

Port number storage node container services should listen on.

Default: 6201

openstack_swift_controller_packages

list / elements=string

List of packages installed on the controller node for the Swift component.

Default: ["swift-api", "swift-scheduler"]

openstack_swift_controller_services

list / elements=string

Services to be restarted during install (and/or configuration changes) on the controller node.

Default: ["swift-scheduler", "apache2"]

openstack_swift_hash_path_prefix

string / required

Random string to prepend to paths when generating hashes.

openstack_swift_hash_path_suffix

string / required

Random string to append to paths when generating hashes.

openstack_swift_listen_address

string / required

IP address swift storage services on the storage node should bind to.

openstack_swift_object_server_port

integer

Port number storage node object services should listen on.

Default: 6200

openstack_swift_service_description

string

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

Default: "OpenStack Block Storage"

openstack_swift_service_password

string / required

Service password assigned to the openstack_swift_service_user.

openstack_swift_service_user

string

User created in OpenStack Keystone for the Swift component.

Default: "swift"

openstack_swift_storage_packages

list / elements=string

List of packages installed on the storage nodes for the Swift component.

Default: ["swift-volume", "tgt", "ceph-common"]

openstack_swift_storage_root

string

Filesystem path at the root of storage device mounts.

Default: "/srv/node"

openstack_swift_storage_services

list / elements=string

Services to be restarted during install (and/or configuration changes) on the storage nodes.

Default: ["tgt", "swift-volume"]