(MAINT) Make Port Check Configurable

This change makes the port and port timeout configurable via the YAML
config file. Before these were hard coded to 22 and 5, respectively.

Tests have been added to verify the default is chosen when not
configured and the configuration is picked up when supplied.
This commit is contained in:
Colin 2015-12-21 11:35:33 -08:00
parent 1a6cd99ed2
commit f580f9915e
3 changed files with 50 additions and 4 deletions

View file

@ -161,6 +161,16 @@
#
# - domain
# If set, returns a top-level 'domain' JSON key in POST requests
#
# - port
# The port number used to verify a host is ready and available.
# (optional; default: 22)
#
# - port_timeout
# How long (in seconds) to wait for connection to port before canceling.
# This is not used in marking a VM dead or stale.
# (optional; default: 5)
#
# Example:
@ -176,6 +186,8 @@
- 'created_by'
- 'project'
domain: 'company.com'
port: 22
port_timeout: 5
# :pools:
#