I would be great to be able to have the filters more dynamic. My particular use case is to use an environment variable set to filter droplets by tag. e.g. If the environment variable a tag on the droplet. I am not sure if this is a defect or feature request. The documentation indicates jinja expressions should work, but perhaps the lookup filter isn't supported.
ISSUE TYPE
Feature Idea
COMPONENT NAME
Filters
ADDITIONAL INFORMATION
Currently, I would need to hardcode the value and support multiple inventories with 99% duplicate information in both configuration files.
filters:
- 'lookup("env", "DATACENTER") in do_tags'
SUMMARY
I would be great to be able to have the filters more dynamic. My particular use case is to use an environment variable set to filter droplets by tag. e.g. If the environment variable a tag on the droplet. I am not sure if this is a defect or feature request. The documentation indicates jinja expressions should work, but perhaps the lookup filter isn't supported.
ISSUE TYPE
COMPONENT NAME
Filters
ADDITIONAL INFORMATION
Currently, I would need to hardcode the value and support multiple inventories with 99% duplicate information in both configuration files.