-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_ec2 inventory: add includes_filters and excludes_filters #328
aws_ec2 inventory: add includes_filters and excludes_filters #328
Conversation
f50ce90
to
43c6596
Compare
43c6596
to
09c7ccb
Compare
Feedback on IRC (Cc: @flowerysong @tadeboro).
|
Having multiple options that do the same thing leads to even more confusion. If you really think that it's confusing, you can deprecate the old way of passing filters and require that the user specify a list. |
|
I don't think we need to deprecate the current |
# generate inventory config with includes_entries_matching and prepare the tests | ||
ansible-playbook playbooks/create_inventory_config.yml -e "template='inventory_with_includes_entries_matching.yml.j2'" "$@" | ||
ansible-playbook playbooks/test_populating_inventory_with_includes_entries_matching.yml "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the template and playbook are missing.
I'm not sure why, but it looks like the integration tests didn't fire properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 indeed.
09c7ccb
to
e4195a7
Compare
...ts/inventory_aws_ec2/playbooks/test_populating_inventory_with_include_or_exclude_filters.yml
Show resolved
Hide resolved
...gration/targets/inventory_aws_ec2/templates/inventory_with_include_or_exclude_filters.yml.j2
Outdated
Show resolved
Hide resolved
Mostly looks good, primarily nit-picking at this point. |
Expose a new `include_filters` and `exclude_filters` configuration keys that gives the user the ability to compose the final inventory list with several queries. Closes: ansible-collections#248 Closes: ansible-collections#182
ee066ca
to
79d8840
Compare
Thanks very much @goneri, this looks good. Can you please work with the Tower team to schedule this with QE? |
…_contrib_script_compatible_ec2_tag_keys (#858) Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys SUMMARY Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys include_filters and exclude_filters have been added #328 and released with amazon.aws 1.5.0 use_contrib_script_compatible_ec2_tag_keys has been added #331 and released with amazon.aws 1.5.0 Let's update the aws_ec2 inventory plugin documentation with this information. This should be a step towards closing this one #676 and #675 aws_ec2 documentation will be enriched with exhaustive examples in an upcoming PR. ISSUE TYPE Docs Pull Request COMPONENT NAME aws_ec2 ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None>
…_contrib_script_compatible_ec2_tag_keys (#858) Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys SUMMARY Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys include_filters and exclude_filters have been added #328 and released with amazon.aws 1.5.0 use_contrib_script_compatible_ec2_tag_keys has been added #331 and released with amazon.aws 1.5.0 Let's update the aws_ec2 inventory plugin documentation with this information. This should be a step towards closing this one #676 and #675 aws_ec2 documentation will be enriched with exhaustive examples in an upcoming PR. ISSUE TYPE Docs Pull Request COMPONENT NAME aws_ec2 ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None> (cherry picked from commit 5f05853)
…_contrib_script_compatible_ec2_tag_keys (#858) (#868) [PR #858/5f058532 backport][stable-3] Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys This is a backport of PR #858 as merged into main (5f05853). SUMMARY Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys include_filters and exclude_filters have been added #328 and released with amazon.aws 1.5.0 use_contrib_script_compatible_ec2_tag_keys has been added #331 and released with amazon.aws 1.5.0 Let's update the aws_ec2 inventory plugin documentation with this information. This should be a step towards closing this one #676 and #675 aws_ec2 documentation will be enriched with exhaustive examples in an upcoming PR. ISSUE TYPE Docs Pull Request COMPONENT NAME aws_ec2 ADDITIONAL INFORMATION
…_contrib_script_compatible_ec2_tag_keys (ansible-collections#858) Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys SUMMARY Add version_added: 1.5.0 for exclude_filters, include_filters and use_contrib_script_compatible_ec2_tag_keys include_filters and exclude_filters have been added ansible-collections#328 and released with amazon.aws 1.5.0 use_contrib_script_compatible_ec2_tag_keys has been added ansible-collections#331 and released with amazon.aws 1.5.0 Let's update the aws_ec2 inventory plugin documentation with this information. This should be a step towards closing this one ansible-collections#676 and ansible-collections#675 aws_ec2 documentation will be enriched with exhaustive examples in an upcoming PR. ISSUE TYPE Docs Pull Request COMPONENT NAME aws_ec2 ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None>
…passed (ansible-collections#328) * Fix ec2_eip with both instance_id and private_ip_address * Add changelog fragment for the ec2_eip fix This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@4d1aa98
…passed (ansible-collections#328) * Fix ec2_eip with both instance_id and private_ip_address * Add changelog fragment for the ec2_eip fix This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@4d1aa98
…passed (ansible-collections#328) * Fix ec2_eip with both instance_id and private_ip_address * Add changelog fragment for the ec2_eip fix
…passed (ansible-collections#328) * Fix ec2_eip with both instance_id and private_ip_address * Add changelog fragment for the ec2_eip fix
…passed (ansible-collections#328) * Fix ec2_eip with both instance_id and private_ip_address * Add changelog fragment for the ec2_eip fix
Expose a new
include_filters
andexclude_filters
configuration keys that gives the user the ability to compose the final inventory list with several queries.Closes: #248
Closes: #182