-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow one to override the hardcoded value "ansible_syslogger" in the syslogger module. #319
Comments
Files identified in the description: If these files are inaccurate, please update the |
resolved_by_pr #340 |
@mivanov-itsonix, Could you please check PR #340 and let us know if it works for you ? |
@Akasurde , that works for me, thank you for your time. PS: You can remove the alias "appname", I do not insist on that as it was just an example. Ident works fine for me. |
Added new parameter ident to specify the name of application which is sending the message to syslog using syslogger module. Fixes: ansible-collections#319 Signed-off-by: Abhijeet Kasurde <[email protected]>
@mivanov-itsonix Thanks for testing and providing the feedback. I implemented the required changes. |
SUMMARY
Copied from ansible/ansible#69428.
It is useful to allow one to specify the application name in the syslogger module. It is hardcoded to "ansible_syslogger" at the moment, see:
https://github.com/ansible-collections/community.general/blob/master/plugins/modules/notification/syslogger.py#L145
https://github.com/ansible-collections/community.general/blob/master/plugins/modules/notification/syslogger.py#L149
Moreover, this hardcoded string is not mentioned in the documentation:
https://docs.ansible.com/ansible/latest/modules/syslogger_module.html
ISSUE TYPE
COMPONENT NAME
plugins/modules/notification/syslogger.py
ADDITIONAL INFORMATION
One could override it with:
or in some other way.
The text was updated successfully, but these errors were encountered: