af3b719b73
The group variables originally in ansible/group_vars/ were playbook group variables, due to being adjacent to the playbooks. Typically they provided default values for global variables in the all group, as well as some more specific groups. This has worked fairly well, but results in (at least) a couple of problems. 1. The default variable precedence rules mean that these playbook group variables have a higher precedence than inventory group variables (for a given group). This can make it challenging to override playbook group variables in the inventory in Kayobe configuration. 2. Any playbook run by Kayobe must be in the same directory as the playbook group variables in order to use them. Given that they include variables required for connectivity such as ansible_host and ansible_user, this is quite critical. For Kayobe custom playbooks, we work around this by symlinking to the group_vars directory from the directory containing the custom playbook. This is not an elegant workaround, and has assumptions about the relative paths of the Kayobe configuration and virtual environment in which Kayobe is installed. Story: 2010280 Task: 46233 Change-Id: Ifea5c7e73f6f410f96a7398bfd349d1f631d9fc0
68 lines
2.6 KiB
Plaintext
68 lines
2.6 KiB
Plaintext
---
|
|
###############################################################################
|
|
# OpenStack Swift configuration.
|
|
|
|
# Short name of the kolla container image used to build rings. Default is the
|
|
# swift=object image.
|
|
swift_ring_build_image_name: swift-object
|
|
|
|
# Full name of the kolla container image used to build rings.
|
|
swift_ring_build_image: "{{ kolla_docker_registry ~ '/' if kolla_docker_registry else '' }}{{ kolla_docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-{{ swift_ring_build_image_name }}:{{ kolla_openstack_release }}"
|
|
|
|
# Ansible host pattern matching hosts on which Swift object storage services
|
|
# are deployed. The default is to use hosts in the 'storage' group.
|
|
swift_hosts: "storage"
|
|
|
|
# Name of the host used to build Swift rings. Default is the first host of
|
|
# 'swift_hosts'.
|
|
swift_ring_build_host: "{{ query('inventory_hostnames', swift_hosts)[0] }}"
|
|
|
|
# ID of the Swift region for this host. Default is 1.
|
|
swift_region: 1
|
|
|
|
# ID of the Swift zone. This can be set to different values for different hosts
|
|
# to place them in different zones. Default is 0.
|
|
swift_zone: 0
|
|
|
|
# Base-2 logarithm of the number of partitions.
|
|
# i.e. num_partitions=2^<swift_part_power>. Default is 10.
|
|
swift_part_power: 10
|
|
|
|
# Object replication count. Default is the smaller of the number of Swift
|
|
# hosts, or 3.
|
|
swift_replication_count: "{{ [query('inventory_hostnames', swift_hosts) | length, 3] | min }}"
|
|
|
|
# Minimum time in hours between moving a given partition. Default is 1.
|
|
swift_min_part_hours: 1
|
|
|
|
# Ports on which Swift services listen. Default is:
|
|
# object: 6000
|
|
# account: 6001
|
|
# container: 6002
|
|
swift_service_ports:
|
|
object: 6000
|
|
account: 6001
|
|
container: 6002
|
|
|
|
# List of block devices to use for Swift. Each item is a dict with the
|
|
# following items:
|
|
# - 'device': Block device path. Required.
|
|
# - 'fs_label': Name of the label used to create the file system on the device.
|
|
# Optional. Default is to use the basename of the device.
|
|
# - 'services': List of services that will use this block device. Optional.
|
|
# Default is 'swift_block_device_default_services'. Allowed items are
|
|
# 'account', 'container', and 'object'.
|
|
# - 'weight': Weight of the block device. Optional. Default is
|
|
# 'swift_block_device_default_weight'.
|
|
swift_block_devices: []
|
|
|
|
# Default weight to assign to block devices in the ring. Default is 100.
|
|
swift_block_device_default_weight: 100
|
|
|
|
# Default list of services to assign block devices to. Allowed items are
|
|
# 'account', 'container', and 'object'. Default value is all of these.
|
|
swift_block_device_default_services:
|
|
- account
|
|
- container
|
|
- object
|