main.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. openshift_node_groups:
  3. - name: node-config-master
  4. labels:
  5. - 'node-role.kubernetes.io/master=true'
  6. edits: []
  7. - name: node-config-infra
  8. labels:
  9. - 'node-role.kubernetes.io/infra=true'
  10. edits: []
  11. - name: node-config-compute
  12. labels:
  13. - 'node-role.kubernetes.io/compute=true'
  14. edits: []
  15. openshift_node_group_edits: []
  16. openshift_node_group_namespace: openshift-node
  17. openshift_node_group_labels: []
  18. openshift_use_crio: False
  19. l_crio_use_new_var_sock: "{{ openshift_version | version_compare('3.9', '>=') }}"
  20. l_crio_var_sock: "{{ l_crio_use_new_var_sock | ternary('/var/run/crio/crio.sock', '/var/run/crio.sock') }}"
  21. openshift_node_group_cloud_provider: "{{ openshift_cloudprovider_kind | default(None) }}"
  22. openshift_node_group_network_plugin_default: "{{ os_sdn_network_plugin_name | default('redhat/openshift-ovs-subnet') }}"
  23. openshift_node_group_network_plugin: "{{ openshift_node_group_network_plugin_default }}"
  24. openshift_node_group_node_data_dir_default: "{{ openshift_data_dir | default('/var/lib/origin') }}"
  25. openshift_node_group_node_data_dir: "{{ openshift_node_group_node_data_dir_default }}"
  26. openshift_node_group_network_mtu: "{{ openshift_node_sdn_mtu | default(8951) | int }}"
  27. l_openshift_images_dict:
  28. origin: 'docker.io/openshift/origin-${component}:${version}'
  29. openshift-enterprise: 'registry.access.redhat.com/openshift3/ose-${component}:${version}'
  30. l_osm_registry_url_default: "{{ l_openshift_images_dict[openshift_deployment_type] }}"
  31. l_os_registry_url: "{{ oreg_url | default(l_osm_registry_url_default) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  32. openshift_imageconfig_format: "{{ l_os_registry_url }}"
  33. l_openshift_prefix_dict:
  34. origin: 'origin-${component}'
  35. openshift-enterprise: 'ose-${component}'
  36. l_os_prefix: "{{ l_openshift_prefix_dict[openshift_deployment_type] }}"
  37. # TODO: we should publish oreg_url component=node
  38. osn_image: "{{ l_os_registry_url | regex_replace(l_os_prefix | regex_escape, 'node') }}"