main.yml 1.7 KB

1234567891011121314151617181920212223242526
  1. ---
  2. system_images_registry_dict:
  3. openshift-enterprise: "registry.access.redhat.com"
  4. origin: "docker.io"
  5. system_images_registry: "{{ system_images_registry_dict[openshift_deployment_type | default('origin')] }}"
  6. l_openshift_images_dict:
  7. origin: 'docker.io/openshift/origin-${component}:${version}'
  8. openshift-enterprise: 'registry.access.redhat.com/openshift3/ose-${component}:${version}'
  9. l_osm_registry_url_default: "{{ l_openshift_images_dict[openshift_deployment_type] }}"
  10. l_os_registry_url: "{{ oreg_url | default(l_osm_registry_url_default) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  11. l_openshift_prefix_dict:
  12. origin: 'origin-${component}'
  13. openshift-enterprise: 'ose-${component}'
  14. l_os_prefix: "{{ l_openshift_prefix_dict[openshift_deployment_type] }}"
  15. # TODO: we should publish oreg_url component=node
  16. openshift_image_default: "{{ l_os_registry_url | regex_replace('${component}' | regex_escape, 'node') }}"
  17. 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)) }}"
  18. system_openshift_cli_image: "{{ (system_images_registry == 'docker') | ternary('docker:' + openshift_cli_image, openshift_cli_image) }}"
  19. openshift_use_crio_only: False
  20. openshift_crio_use_rpm: False
  21. l_is_system_container_image: "{{ openshift_use_master_system_container | default(openshift_use_system_containers | default(False)) | bool }}"
  22. l_use_cli_atomic_image: "{{ (openshift_use_crio_only | bool and not openshift_crio_use_rpm | bool) or (l_is_system_container_image | bool) }}"