Commit Graph

7 Commits (bb95f2814c73e6936114df2642b3e731fb9cde06)

Author SHA1 Message Date
Jan-Piet Mens d6625a2b1f Module DOCUMENTATION for template, wait_for, and yum 12 years ago
Dag Wieers a05be4afbd Fix on older python versions, plus various improvements
This change includes:

 - (on possibly older python versions ?) a string variable test using the 'is' operator fails (so it always return ok immediately after initial delay)
 - add a missing socket.settimeout() for the state=started case (if the machine does not exist, timeout defaults to 60 seconds)
 - add a connect_timeout option to customize the default connection timeout
 - use socket.shutdown(2) to close immediately
 - return the elapsed time
12 years ago
Michael DeHaan 2c2113430f chmod +x 12 years ago
Jeroen Hoekx ac0ee3d006 wait_for: remove restarted, add delay, rename name to host, make port required. 12 years ago
Jeroen Hoekx 79fffdae87 Change wait_for return message to be machine readable. 12 years ago
Jeroen Hoekx 0323d887df Add a state parameter to the wait_for module.
This takes started, stopped and restarted.

Started returns when connecting is possible.
Stopped when connecting is not possible.
Restarted first waits for connecting to be impossible and returns when it is
possible again.
12 years ago
Jeroen Hoekx 5deac26a0e Add the wait_for module.
This module waits until a specific port on a given host can be connected to.
12 years ago