Implement configurable start delay for containers

With the move of the container creation process from each service
playbook into the lxc-container-create playbook/role, it would be
appropriate to ensure that the delay implemented in the service
plays is implemented in the role.

This patch does so.

Change-Id: I473bcccde315ef66f45e912ad33ed665bed3b07c
This commit is contained in:
Jesse Pretorius 2016-07-29 19:16:15 +01:00
parent f26d4075e8
commit 019f156ab3
3 changed files with 10 additions and 1 deletions

View File

@ -16,6 +16,9 @@
## Verbosity Options
debug: False
## SSH connection wait time
lxc_container_ssh_delay: 5
lxc_container_config: /etc/lxc/lxc-openstack.conf
lxc_container_default_config_list:
- "lxc.start.auto=1"

View File

@ -0,0 +1,6 @@
---
features:
- The LXC container creation process now has a configurable
delay for the task which waits for the container to start.
The variable ``lxc_container_ssh_delay`` can be set to
change the default delay of five seconds.

View File

@ -251,7 +251,7 @@
port: "{{ ansible_ssh_port | default('22') }}"
host: "{{ ansible_ssh_host | default(inventory_hostname) }}"
search_regex: OpenSSH
delay: 1
delay: "{{ lxc_container_ssh_delay }}"
tags:
- lxc-container-networks