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:
parent
f26d4075e8
commit
019f156ab3
@ -16,6 +16,9 @@
|
|||||||
## Verbosity Options
|
## Verbosity Options
|
||||||
debug: False
|
debug: False
|
||||||
|
|
||||||
|
## SSH connection wait time
|
||||||
|
lxc_container_ssh_delay: 5
|
||||||
|
|
||||||
lxc_container_config: /etc/lxc/lxc-openstack.conf
|
lxc_container_config: /etc/lxc/lxc-openstack.conf
|
||||||
lxc_container_default_config_list:
|
lxc_container_default_config_list:
|
||||||
- "lxc.start.auto=1"
|
- "lxc.start.auto=1"
|
||||||
|
@ -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.
|
@ -251,7 +251,7 @@
|
|||||||
port: "{{ ansible_ssh_port | default('22') }}"
|
port: "{{ ansible_ssh_port | default('22') }}"
|
||||||
host: "{{ ansible_ssh_host | default(inventory_hostname) }}"
|
host: "{{ ansible_ssh_host | default(inventory_hostname) }}"
|
||||||
search_regex: OpenSSH
|
search_regex: OpenSSH
|
||||||
delay: 1
|
delay: "{{ lxc_container_ssh_delay }}"
|
||||||
tags:
|
tags:
|
||||||
- lxc-container-networks
|
- lxc-container-networks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user