1234567891011121314151617181920 |
- ---
- system_images_registry_dict:
- openshift-enterprise: "registry.access.redhat.com"
- origin: "docker.io"
- system_images_registry: "{{ system_images_registry_dict[openshift_deployment_type | default('origin')] }}"
- l_openshift_images_dict:
- origin: 'docker.io/openshift/origin-${component}:${version}'
- openshift-enterprise: 'registry.access.redhat.com/openshift3/ose-${component}:${version}'
- l_osm_registry_url_default: "{{ l_openshift_images_dict[openshift_deployment_type] }}"
- l_os_registry_url: "{{ oreg_url | default(l_osm_registry_url_default) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
- openshift_image_default: "{{ l_os_registry_url | regex_replace('${component}' | regex_escape, 'node') }}"
- # not sure why this one is more complicated than other images
- openshift_cli_image: "{{ (system_images_registry == 'docker') | ternary(openshift_image_default, (openshift_image_default.split('/')|length==2) | ternary(system_images_registry + '/' + openshift_image_default, openshift_image_default)) }}"
- system_openshift_cli_image: "{{ (system_images_registry == 'docker') | ternary('docker:' + openshift_cli_image, openshift_cli_image) }}"
- openshift_crio_use_rpm: False
- l_use_cli_atomic_image: "{{ (openshift_use_crio_only | bool and not openshift_crio_use_rpm | bool) }}"
- l_openshift_cli_image_backend: "{{ (l_use_cli_atomic_image | bool) | ternary('atomic', 'docker') }}"
|