1ef256a308
The variables defined in etc/openstack_deploy/conf.d/swift.yml are added as hostvars by the dynamic inventory script. Currently the vars are being added to hosts that do not require them. There is a variable called limit_container_types that is used by the dynamic inventory to filter the hosts to which variables are assigned. This script makes use of that variable so that only swift hosts have these variables set. The dynamic inventory script checks to see if the limit_container_types string is in the container name as the method of filtering. This means that the AIO host, aio1, does not get swift_vars assigned to it. This commit alters the filter so that the component is checked instead of the container name. Change-Id: I945594a55ce058d822b941d08eb0ad9c5614db15 Closes-bug: #1472261
34 lines
736 B
Plaintext
34 lines
736 B
Plaintext
---
|
|
global_overrides:
|
|
swift:
|
|
part_power: 8
|
|
storage_network: 'br-storage'
|
|
replication_network: 'br-storage'
|
|
drives:
|
|
- name: swift1.img
|
|
- name: swift2.img
|
|
- name: swift3.img
|
|
mount_point: /srv
|
|
storage_policies:
|
|
- policy:
|
|
name: default
|
|
index: 0
|
|
default: True
|
|
swift-proxy_hosts:
|
|
aio1:
|
|
ip: 172.29.236.100
|
|
container_vars:
|
|
swift_proxy_vars:
|
|
limit_container_types: swift_proxy
|
|
read_affinity: "r1=100"
|
|
write_affinity: "r1"
|
|
write_affinity_node_count: "1 * replicas"
|
|
swift_hosts:
|
|
aio1:
|
|
ip: 172.29.236.100
|
|
container_vars:
|
|
swift_vars:
|
|
limit_container_types: swift
|
|
zone: 0
|
|
region: 1
|