limit_container_types can't/won't filter certain vars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Confirmed
|
Wishlist
|
Nolan Brubaker |
Bug Description
limit_container
container_vars:
cinder_backends:
limit_
It only applies the var to hosts that match the filter.
limit_container
Additionally, some vars can't be filtered, for example "glance_
container_vars:
limit_
glance_
- key1: v1
key2: v2
And the following is invalid syntactically:
container_vars:
glance_
limit_
- key1: v1
key2: v2
It seems limit_container
Changed in openstack-ansible: | |
assignee: | nobody → Nolan Brubaker (nolan-brubaker) |
Ok, so looking at this code, I can confirm that this bug describes the current behavior accurately (see https:/ /github. com/openstack/ openstack- ansible/ blob/master/ lib/generate. py#L305- L306, where it iterates over all entries in `container_vars`).
I think this is a reasonable thing to want, but I believe it is a feature request.
The case for `glance_ nfs_clients` and similar may be tricky (3rd example provided), though I think adding limit support for `container_vars` itself (the 2nd example) should be fairly straightforward.