-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add some more documentation on command template #128
Conversation
Hi @ioguix, I like the changes! Though you need to change the Also this documentation could be added to the command module, right? |
Yes, I saw this in the auto-checks :/ I'm not used to the module format and documentation, but I wondered if the choices/comments cells could be split in some way to reflect the various types the I'm not sure adding multiple Any opinion on this? |
Co-authored-by: Sebastian Gumprich <[email protected]>
oh, I forgot to answer:
Maybe, but really I don't know. I hadn't dig for the command module as we didn't bump on it. In fact, I was secretly hopping someone more experienced with the module would chime in and confirm this applies to the command module as well :) |
I just checked, the command has arguments that look the same from the frontend view and the API, so we can add it there, too.
Good question, I don't know either. The API seems to differ only in that the value is either a string or a dict: with a string:
with a dict:
So we could build the module in a way that when the type of the value of the argument is "Function", it gets the type and body. If it is not a "Function", we skip the type and body and just add the string to the value argument. Makes sense? However I don't really know if I WANT that. :D |
I don't get it. I was speaking of the doc generation/format itself. In this context, I'm not sure I understand your answer, sorry :/ |
Well, the docs do have to match the actual configuration! :) We currently define the the Now the actual And even then we probably could not display this correct in the docs since the docs have to match the implementation. What you want for the documentation is something like this, right? https://docs.ansible.com/ansible/latest/collections/community/docker/docker_container_module.html#parameter-healthcheck |
...or a json according to the code. But I don't know if/how ansible is dealing with this.
Well, these are Thanks! |
Thanks for this! I created https://github.com/T-Systems-MMS/ansible-collection-icinga-director/issues/130 to follow up on this. |
Thanks! |
* add better example and more docs to icinga_command see https://github.com/T-Systems-MMS/ansible-collection-icinga-director/pull/128/ * update examples and tests
Hi,
We have been poking around to be able to add some DSL code as argument in a command template. We thought it would be useful to add some more doc about it as it might be useful to some others.
This is a first shot, let me know what you think and if it needs some rewording, syntax fix, etc.