6c54ce4d3b
This allows us to continue execution until a certain proportion of hosts fail. This can be useful at scale, where failures are common, and restarting a deployment is time-consuming. The default max failure percentage is 100, keeping the default behaviour. A global max failure percentage may be set via kayobe_max_fail_percentage, and individual playbooks may define a max failure percentage via <playbook>_max_fail_percentage. Related Kolla Ansible patch: https://review.opendev.org/c/openstack/kolla-ansible/+/805598 Change-Id: Ib81c72b63be5765cca664c38141ffc769640cf07
20 lines
633 B
YAML
20 lines
633 B
YAML
---
|
|
- name: Ensure docker is configured
|
|
hosts: docker
|
|
max_fail_percentage: >-
|
|
{{ docker_max_fail_percentage |
|
|
default(host_configure_max_fail_percentage) |
|
|
default(kayobe_max_fail_percentage) |
|
|
default(100) }}
|
|
tags:
|
|
- docker
|
|
tasks:
|
|
- import_role:
|
|
name: docker
|
|
vars:
|
|
docker_daemon_mtu: "{{ public_net_name | net_mtu | default }}"
|
|
docker_configure_for_zun: "{{ kolla_enable_zun | bool }}"
|
|
docker_http_proxy: "{{ kolla_http_proxy }}"
|
|
docker_https_proxy: "{{ kolla_https_proxy }}"
|
|
docker_no_proxy: "{{ kolla_no_proxy | select | join(',') }}"
|