main.yml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ---
  2. openshift_client_binary: "{{ (openshift_is_atomic | bool) | ternary('/usr/local/bin/oc', 'oc') }}"
  3. system_images_registry_dict:
  4. openshift-enterprise: "registry.access.redhat.com"
  5. origin: "docker.io"
  6. system_images_registry: "{{ system_images_registry_dict[openshift_deployment_type | default('origin')] }}"
  7. l_openshift_images_dict:
  8. origin: 'docker.io/openshift/origin-${component}:${version}'
  9. openshift-enterprise: 'registry.access.redhat.com/openshift3/ose-${component}:${version}'
  10. l_osm_registry_url_default: "{{ l_openshift_images_dict[openshift_deployment_type] }}"
  11. l_osm_registry_url: "{{ oreg_url_master | default(oreg_url) | default(l_osm_registry_url_default) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  12. l_os_registry_url: "{{ oreg_url | default(l_osm_registry_url_default) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  13. openshift_image_default: "{{ l_os_registry_url | regex_replace('${component}' | regex_escape, 'node') }}"
  14. # not sure why this one is more complicated than other images
  15. 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)) }}"
  16. system_openshift_cli_image: "{{ (system_images_registry == 'docker') | ternary('docker:' + openshift_cli_image, openshift_cli_image) }}"
  17. osn_image: "{{ l_os_registry_url | regex_replace('${component}' | regex_escape, 'node') }}"
  18. osm_image: "{{ l_osm_registry_url | regex_replace('${component}' | regex_escape, 'control-plane') }}"
  19. repoquery_cmd: "{{ (ansible_pkg_mgr == 'dnf') | ternary('dnf repoquery --latest-limit 1 -d 0', 'repoquery --plugins') }}"
  20. repoquery_installed: "{{ (ansible_pkg_mgr == 'dnf') | ternary('dnf repoquery --latest-limit 1 -d 0 --disableexcludes=all --installed', 'repoquery --plugins --installed') }}"
  21. openshift_use_crio_only: False
  22. # osm_default_subdomain is an old migrated fact, can probably be removed.
  23. osm_default_subdomain: "router.default.svc.cluster.local"
  24. openshift_master_default_subdomain: "{{ osm_default_subdomain }}"
  25. openshift_portal_net: "{{ openshift_master_portal_net | default(None) }}"
  26. openshift_cluster_network_cidr: "{{ osm_cluster_network_cidr | default('10.128.0.0/14') }}"
  27. openshift_host_subnet_length: "{{ osm_host_subnet_length | default('9') }}"
  28. openshift_hosted_etcd_storage_nfs_directory: '/exports'
  29. openshift_hosted_etcd_storage_nfs_options: '*(rw,root_squash)'
  30. openshift_hosted_etcd_storage_volume_name: 'etcd'
  31. openshift_hosted_etcd_storage_volume_size: '1Gi'
  32. openshift_hosted_etcd_storage_create_pv: True
  33. openshift_hosted_etcd_storage_create_pvc: False
  34. openshift_hosted_etcd_storage_access_modes:
  35. - 'ReadWriteOnce'
  36. openshift_hosted_registry_namespace: 'default'
  37. openshift_hosted_registry_storage_volume_name: 'registry'
  38. openshift_hosted_registry_storage_volume_size: '5Gi'
  39. openshift_hosted_registry_storage_create_pv: True
  40. openshift_hosted_registry_storage_create_pvc: True
  41. openshift_hosted_registry_storage_nfs_directory: '/exports'
  42. openshift_hosted_registry_storage_nfs_options: '*(rw,root_squash)'
  43. openshift_hosted_registry_storage_glusterfs_endpoints: 'glusterfs-registry-endpoints'
  44. openshift_hosted_registry_storage_glusterfs_path: glusterfs-registry-volume
  45. openshift_hosted_registry_storage_glusterfs_readOnly: False
  46. openshift_hosted_registry_storage_glusterfs_swap: False
  47. openshift_hosted_registry_storage_glusterfs_swapcopy: True
  48. openshift_hosted_registry_storage_glusterfs_ips: []
  49. openshift_hosted_registry_storage_access_modes:
  50. - 'ReadWriteMany'
  51. openshift_logging_storage_nfs_directory: '/exports'
  52. openshift_logging_storage_nfs_options: '*(rw,root_squash)'
  53. openshift_logging_storage_volume_name: 'logging-es'
  54. openshift_logging_storage_create_pv: True
  55. openshift_logging_storage_create_pvc: False
  56. openshift_logging_storage_access_modes:
  57. - ['ReadWriteOnce']
  58. openshift_loggingops_storage_volume_name: 'logging-es-ops'
  59. openshift_loggingops_storage_volume_size: '10Gi'
  60. openshift_loggingops_storage_create_pv: True
  61. openshift_loggingops_storage_create_pvc: False
  62. openshift_loggingops_storage_nfs_directory: '/exports'
  63. openshift_loggingops_storage_nfs_options: '*(rw,root_squash)'
  64. openshift_loggingops_storage_access_modes:
  65. - 'ReadWriteOnce'
  66. openshift_metrics_deploy: False
  67. openshift_metrics_duration: 7
  68. openshift_metrics_resolution: '10s'
  69. openshift_metrics_storage_volume_name: 'metrics'
  70. openshift_metrics_storage_volume_size: '10Gi'
  71. openshift_metrics_storage_create_pv: True
  72. openshift_metrics_storage_create_pvc: False
  73. openshift_metrics_storage_nfs_directory: '/exports'
  74. openshift_metrics_storage_nfs_options: '*(rw,root_squash)'
  75. openshift_metrics_storage_access_modes:
  76. - 'ReadWriteOnce'
  77. openshift_prometheus_storage_volume_name: 'prometheus'
  78. openshift_prometheus_storage_volume_size: '10Gi'
  79. openshift_prometheus_storage_access_modes:
  80. - 'ReadWriteOnce'
  81. openshift_prometheus_storage_create_pv: True
  82. openshift_prometheus_storage_create_pvc: False
  83. openshift_prometheus_alertmanager_storage_volume_name: 'prometheus-alertmanager'
  84. openshift_prometheus_alertmanager_storage_volume_size: '10Gi'
  85. openshift_prometheus_alertmanager_storage_access_modes:
  86. - 'ReadWriteOnce'
  87. openshift_prometheus_alertmanager_storage_create_pv: True
  88. openshift_prometheus_alertmanager_storage_create_pvc: False
  89. openshift_prometheus_alertbuffer_storage_volume_name: 'prometheus-alertbuffer'
  90. openshift_prometheus_alertbuffer_storage_volume_size: '10Gi'
  91. openshift_prometheus_alertbuffer_storage_access_modes:
  92. - 'ReadWriteOnce'
  93. openshift_prometheus_alertbuffer_storage_create_pv: True
  94. openshift_prometheus_alertbuffer_storage_create_pvc: False
  95. openshift_service_type_dict:
  96. origin: origin
  97. openshift-enterprise: atomic-openshift
  98. openshift_service_type: "{{ openshift_service_type_dict[openshift_deployment_type] }}"
  99. openshift_master_api_port: "8443"
  100. openshift_ca_host: "{{ groups.oo_first_master.0 }}"
  101. openshift_use_openshift_sdn: true
  102. openshift_node_groups:
  103. - name: node-config-master
  104. labels:
  105. - 'node-role.kubernetes.io/master=true'
  106. edits: []
  107. - name: node-config-infra
  108. labels:
  109. - 'node-role.kubernetes.io/infra=true'
  110. edits: []
  111. - name: node-config-compute
  112. labels:
  113. - 'node-role.kubernetes.io/compute=true'
  114. edits: []
  115. openshift_master_manage_htpasswd: True