2e7b5287f3
Closes-Bug: #2066032 This patch adds an integer type to the task in the docker role that generates the docker daemon config. This was previously uncast and defaulting to a string type, which causes an error with certain docker versions (via the Rocky 9.3 distro). See bug description for more info. Change-Id: I2a996fa22fedece2c894b378fadbfc5dd0c045b6
20 lines
725 B
YAML
20 lines
725 B
YAML
---
|
|
- import_role:
|
|
name: openstack.kolla.docker
|
|
vars:
|
|
docker_custom_config: >-
|
|
{%- set options = {} -%}
|
|
{%- if docker_daemon_debug | bool -%}
|
|
{%- set _ = options.update({"debug": docker_daemon_debug | bool}) -%}
|
|
{%- endif -%}
|
|
{%- if docker_registry_mirrors | length > 0 -%}
|
|
{%- set _ = options.update({"registry-mirrors": docker_registry_mirrors}) -%}
|
|
{%- endif -%}
|
|
{%- if docker_daemon_mtu -%}
|
|
{%- set _ = options.update({"mtu": docker_daemon_mtu | int}) -%}
|
|
{%- endif -%}
|
|
{%- if docker_daemon_live_restore | bool -%}
|
|
{%- set _ = options.update({"live-restore": docker_daemon_live_restore | bool}) -%}
|
|
{%- endif -%}
|
|
{{ options }}
|