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

[WIP] Allow module to document environment variable fallbacks for options #75

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Dec 1, 2022

Includes #73.

This is the controversal part of #73, which allows modules to declare environment variable fallbacks for options.

Related to ansible/ansible#79471.

@felixfontein felixfontein changed the title [WIP] Allow module to improve environment variable handling [WIP] Allow module to document environment variable fallbacks for options Dec 1, 2022
@felixfontein felixfontein force-pushed the env-vars-modules branch 3 times, most recently from ac79561 to f91f1bb Compare December 23, 2022 06:53
@felixfontein
Copy link
Collaborator Author

felixfontein commented Mar 9, 2023

Rebasing this exposed some problems with semantic markup and the environment variable overview page. I'll fix them next.

@briantist
Copy link
Contributor

The code so far looks good to me. I'm really looking forward to this!

@felixfontein
Copy link
Collaborator Author

Core seems to really be opposed to this, so I'm not sure if this will ever be possible this way...

@felixfontein felixfontein marked this pull request as draft September 27, 2023 11:02
@briantist
Copy link
Contributor

Core seems to really be opposed to this, so I'm not sure if this will ever be possible this way...

I don't see any real discussion in the core ticket :(
I don't really understand why they would be opposed. Modules do have env fallbacks whether they want them to or not, documenting them in a more visible way seems like a win.

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

Successfully merging this pull request may close these issues.

2 participants