wait-for-ssh

Example:

# Wait for host ssh on host 'example.com' to be available (port 22).
- wait-for-ssh:
    host: example.com

Description

n/a

Variables

Name Type Default Description

host

string --

The name or IP address of the host. Required

delay

integer 0

Number of seconds to wait before starting to poll.

extra_wait_time

integer 0

Wait an extra amount of seconds before continuing.

port

integer 22

The port ssh listens on.

timeout

integer 300

Maximum number of seconds to wait for.

Examples

Example 1

Wait for host ssh on host 'example.com' to be available (port 22).

Code
- wait-for-ssh:
    host: example.com

Command-line

frecklecute wait-for-ssh --help

Usage: frecklecute wait-for-ssh [OPTIONS]

  Wait for ssh service to be available on a host.

Options:
  --host HOST                     The name or IP address of the host.
                                  [required]
  --delay DELAY                   Number of seconds to wait before starting to
                                  poll.  [default: 0]
  --extra-wait-time EXTRA_WAIT_TIME
                                  Wait an extra amount of seconds before
                                  continuing.  [default: 0]
  --port PORT                     The port ssh listens on.  [default: 22]
  --timeout TIMEOUT               Maximum number of seconds to wait for.
                                  [default: 300]
  --help                          Show this message and exit.