-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
New module postgresql_ping: Checks remote PostgreSQL server availability. #51477
Conversation
This comment has been minimized.
This comment has been minimized.
143af14
to
0d9674f
Compare
@dagwieers , hello. I added my first integration test for this module. It's a very simple module so the test very simple too.
|
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.
I made some cosmetic and docs changes to speed up this process.
LGTM, but I haven't tested the code myself.
05ef3cf
to
602fea0
Compare
…server availability.
…server availability, doc fixes
602fea0
to
40c8efa
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.
Hmm, I see some pylint recommendations on variables like e and kw.
I know these examples are out there in other ansible modules, but I would fix them.
Makes it just a little bit cleaner. Also some docstring recommendations.
But I'm okay with shipping it in its current form also.
Generall, I like this module. It will be beneficcial into some crude checking if postgres is up, and init'ed as expected.
@sebasmannem thank you for the review! |
@sebasmannem As a reviewer you can add a shipit to any PR simply by adding a comment/review and mention The only exception is a PR that contains a new module (or that modifies something outside of the control of the PostgreSQL Working Group). So for this PR a core member still needs to validate the module before merging, but the shipits do help understand that it is vetted by maintainers/reviewers. We currently have 19 (not new_module) PostgreSQL-related pull-requests that need shipits from reviewers to get merged. So please help spread the gospel and let those shipits count :-) |
|
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.
shipit
shipit |
shipit |
Thanks everybody, merged into |
Thanks all ! |
SUMMARY
New module postgresql_ping: Simple module to check remote PostgreSQL server availability.
ISSUE TYPE
COMPONENT NAME
postgresql_ping
ANSIBLE VERSION
RETURNS
EXAMPLES
OUTPUT EXAMPLES
In following examples Postgres on dbsrv1 is OK, on dbsrv2 it is not running: