main.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. l_openshift_node_group_master: "{{ openshift_node_group_master | default('node-config-master') }}"
  16. openshift_node_group_edits: []
  17. openshift_node_group_namespace: openshift-node
  18. openshift_node_group_labels: []
  19. openshift_use_crio: False
  20. l_crio_var_sock: "/var/run/crio/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. l_openshift_images_dict:
  27. origin: 'docker.io/openshift/origin-${component}:${version}'
  28. openshift-enterprise: 'registry.access.redhat.com/openshift3/ose-${component}:${version}'
  29. l_osm_registry_url_default: "{{ l_openshift_images_dict[openshift_deployment_type] }}"
  30. l_os_registry_url: "{{ oreg_url | default(l_osm_registry_url_default) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  31. openshift_imageconfig_format: "{{ l_os_registry_url }}"
  32. l_openshift_prefix_dict:
  33. origin: 'origin-${component}'
  34. openshift-enterprise: 'ose-${component}'
  35. l_os_prefix: "{{ l_openshift_prefix_dict[openshift_deployment_type] }}"
  36. # TODO: we should publish oreg_url component=node
  37. osn_image: "{{ l_os_registry_url | regex_replace(l_os_prefix | regex_escape, 'node') }}"
  38. openshift_service_type_dict:
  39. origin: origin
  40. openshift-enterprise: atomic-openshift
  41. openshift_service_type: "{{ openshift_service_type_dict[openshift_deployment_type] }}"