Skip to content
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

Jamespath is need for json queries #279

Open
senare opened this issue Dec 7, 2023 · 2 comments
Open

Jamespath is need for json queries #279

senare opened this issue Dec 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@senare
Copy link

senare commented Dec 7, 2023

What problem are you facing?

You must manually install the jmespath dependency on the Ansible controller before using this filter. This filter is built upon jmespath, and you can use the same syntax. For examples, see jmespath examples.

REF https://docs.ansible.com/ansible/latest/collections/community/general/docsite/filter_guide_selecting_json_data.html

How could Crossplane help solve your problem?

It would be nice if controller base image could include the necessary dependencies for this ?

Alternative would be to have the ability to add dependencies as needed ?

an other example would be 'Openstack' which requires the sdk avilable

in my case i want to upload to a bucket ... REF https://docs.ansible.com/ansible/latest/collections/openstack/cloud/object_container_module.html#ansible-collections-openstack-cloud-object-container-module

Third option would be to have the ability to swap out the base image I guess ?

What do you think is a reasonable solution ?

Am I missing something or am I trying to do the 'wrong things' ?

I might add that for me ansible/terraform provider here is the crutch to help me fill any voids as well as a means to be able to migrate to a more cloud-native approach with crossplane. Hence I think it would be valuable if it was possible to at least some how cater to all the strange corner case ...

Oh and as a work around for at least the jmespath I managed to open shell and install it (not a good solution i know)

@senare senare added the enhancement New feature or request label Dec 7, 2023
@bbaassssiiee
Copy link

Support for Execution Environments (the images used in AWX/AAP) would make this more compatible.

@lukas-andrade
Copy link

I suggest install jamespath using ansible and pip. That is the way I solved that problem. But it was cool if the image already have this basic packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants