Add configurable ssh_delay

This patch adds a configurable delay time for retrying the
ssh connection when waiting for the containers to restart.

This is useful for environments where resources are constrained
and containers may take longer to restart.

Change-Id: I0383e34a273b93e1b2651460c853cf1ceba89029
Closes-Bug: #1476885
This commit is contained in:
Stanley Karunditu 2015-08-22 11:40:01 +01:00 committed by Jesse Pretorius
parent 9e08d31fe2
commit 57c5f2c77e
9 changed files with 16 additions and 7 deletions

View File

@ -149,3 +149,8 @@ ssl_cipher_suite: "ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AE
# horizon_available_regions:
# - { url: "{{ keystone_service_internalurl }}", name: "{{ keystone_service_region }}" }
# - { url: "http://cluster1.example.com:5000/v2.0", name: "RegionTwo" }
## SSH connection wait time
# If an increased delay for the ssh connection check is desired,
# uncomment this variable and set it appropriately.
#ssh_delay: 5

View File

@ -86,7 +86,7 @@
- name: Wait for container ssh
wait_for:
port: "22"
delay: 5
delay: "{{ ssh_delay }}"
search_regex: "OpenSSH"
host: "{{ ansible_ssh_host }}"
delegate_to: "{{ physical_host }}"

View File

@ -18,6 +18,10 @@ debug: False
verbose: True
## SSH connection wait time
ssh_delay: 5
## Repo server
repo_service_user_name: nginx
repo_service_home_folder: /var/www

View File

@ -26,7 +26,7 @@
- name: Wait for container ssh
wait_for:
port: "22"
delay: 5
delay: "{{ ssh_delay }}"
search_regex: "OpenSSH"
host: "{{ ansible_ssh_host }}"
delegate_to: "{{ physical_host }}"

View File

@ -76,7 +76,7 @@
- name: Wait for container ssh
wait_for:
port: "22"
delay: 5
delay: "{{ ssh_delay }}"
search_regex: "OpenSSH"
host: "{{ ansible_ssh_host }}"
delegate_to: "{{ physical_host }}"

View File

@ -37,7 +37,7 @@
- name: Wait for container ssh
wait_for:
port: "22"
delay: 5
delay: "{{ ssh_delay }}"
search_regex: "OpenSSH"
host: "{{ ansible_ssh_host }}"
delegate_to: "{{ physical_host }}"

View File

@ -39,7 +39,7 @@
- name: Wait for container ssh
wait_for:
port: "22"
delay: 5
delay: "{{ ssh_delay }}"
search_regex: "OpenSSH"
host: "{{ ansible_ssh_host }}"
delegate_to: "{{ physical_host }}"

View File

@ -37,7 +37,7 @@
- name: Wait for container ssh
wait_for:
port: "22"
delay: 5
delay: "{{ ssh_delay }}"
search_regex: "OpenSSH"
host: "{{ ansible_ssh_host }}"
delegate_to: "{{ physical_host }}"

View File

@ -45,7 +45,7 @@
- name: Wait for container ssh
wait_for:
port: "22"
delay: 5
delay: "{{ ssh_delay }}"
search_regex: "OpenSSH"
host: "{{ ansible_ssh_host }}"
delegate_to: "{{ physical_host }}"