-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: support receiving file contents and env vars from EDA Server #711
Conversation
fa11623
to
c90f1d3
Compare
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.
Questions:
- Should the CHANGELOG be updated?
- Does make sense to support
non_fq_key
? I feel it would be simpler iffilename
isfilenames
and it is always a dict with N nested keys.
Concerns:
I'm concerned about the amount of assumptions that we make from the server side that would end up in unhandled exceptions:
template_key
can be None,data.get("data")
can be None- what if
len(keys) == 1 and template_key != "template"
?
071d2ad
to
bf725ab
Compare
bf725ab
to
87a0834
Compare
|
ee204e7
to
540f785
Compare
540f785
to
c897999
Compare
AAP Credential Types support File contents via file injectors. https://docs.ansible.com/automation-controller/latest/html/userguide/credential_types.html We create temporary files with the data sent from Server The source plugin can access the temporary file names to access the data. Supports single file as well as multiple files. To access the filenames in the source rulebook you can use the following extra vars - eda.filename or - eda.filename.<<key_name1>> - eda.filename.<<key_name2>> e.g. ``` - name: Use payload file to check events hosts: all sources: - ansible.eda.generic: payload_file: "{{ eda.filename.test_payload_file }}" ``` The env vars are treated like extra_vars and inserted into the current processes env
c897999
to
3586680
Compare
|
) AAP Credential Types support File contents via file injectors. https://docs.ansible.com/automation-controller/latest/html/userguide/credential_types.html We create temporary files with the data sent from Server The source plugin can access the temporary file names to access the data. Supports single file as well as multiple files. To access the filenames in the source rulebook you can use the following extra vars - eda.filename or - eda.filename.<<key_name1>> - eda.filename.<<key_name2>> e.g. ``` - name: Use payload file to check events hosts: all sources: - ansible.eda.generic: payload_file: "{{ eda.filename.test_payload_file }}" ``` The env variables are treated like extra_vars and added to the current processes environment https://issues.redhat.com/browse/AAP-25519
AAP Credential Types support File contents via file injectors.
https://docs.ansible.com/automation-controller/latest/html/userguide/credential_types.html
We create temporary files with the data sent from Server The source plugin can access the temporary file names to access the data.
Supports single file as well as multiple files.
To access the filenames in the source rulebook you can use the following extra vars
e.g.
The env variables are treated like extra_vars and added to the current processes environment
https://issues.redhat.com/browse/AAP-25519