main.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ---
  2. openshift_client_binary: "{{ (openshift_is_atomic | bool) | ternary('/usr/local/bin/oc', 'oc') }}"
  3. openshift_cli_image_dict:
  4. origin: 'openshift/origin'
  5. openshift-enterprise: 'openshift3/ose'
  6. repoquery_cmd: "{{ (ansible_pkg_mgr == 'dnf') | ternary('dnf repoquery --latest-limit 1 -d 0', 'repoquery --plugins') }}"
  7. repoquery_installed: "{{ (ansible_pkg_mgr == 'dnf') | ternary('dnf repoquery --latest-limit 1 -d 0 --disableexcludes=all --installed', 'repoquery --plugins --installed') }}"
  8. openshift_cli_image: "{{ osm_image | default(openshift_cli_image_dict[openshift_deployment_type]) }}"
  9. openshift_use_crio_only: False
  10. # osm_default_subdomain is an old migrated fact, can probably be removed.
  11. osm_default_subdomain: "router.default.svc.cluster.local"
  12. openshift_master_default_subdomain: "{{ osm_default_subdomain }}"
  13. openshift_portal_net: "{{ openshift_master_portal_net | default(None) }}"
  14. openshift_cluster_network_cidr: "{{ osm_cluster_network_cidr | default('10.128.0.0/14') }}"
  15. openshift_host_subnet_length: " {{ osm_host_subnet_length | default('9') }}"
  16. openshift_hosted_etcd_storage_nfs_directory: '/exports'
  17. openshift_hosted_etcd_storage_nfs_options: '*(rw,root_squash)'
  18. openshift_hosted_etcd_storage_volume_name: 'etcd'
  19. openshift_hosted_etcd_storage_volume_size: '1Gi'
  20. openshift_hosted_etcd_storage_create_pv: True
  21. openshift_hosted_etcd_storage_create_pvc: False
  22. openshift_hosted_etcd_storage_access_modes:
  23. - 'ReadWriteOnce'
  24. openshift_hosted_registry_namespace: 'default'
  25. openshift_hosted_registry_storage_volume_name: 'registry'
  26. openshift_hosted_registry_storage_volume_size: '5Gi'
  27. openshift_hosted_registry_storage_create_pv: True
  28. openshift_hosted_registry_storage_create_pvc: True
  29. openshift_hosted_registry_storage_nfs_directory: '/exports'
  30. openshift_hosted_registry_storage_nfs_options: '*(rw,root_squash)'
  31. openshift_hosted_registry_storage_glusterfs_endpoints: 'glusterfs-registry-endpoints'
  32. openshift_hosted_registry_storage_glusterfs_path: glusterfs-registry-volume
  33. openshift_hosted_registry_storage_glusterfs_readOnly: False
  34. openshift_hosted_registry_storage_glusterfs_swap: False
  35. openshift_hosted_registry_storage_glusterfs_swapcopy: True
  36. openshift_hosted_registry_storage_glusterfs_ips: []
  37. openshift_hosted_registry_storage_access_modes:
  38. - 'ReadWriteMany'
  39. openshift_logging_storage_nfs_directory: '/exports'
  40. openshift_logging_storage_nfs_options: '*(rw,root_squash)'
  41. openshift_logging_storage_volume_name: 'logging-es'
  42. openshift_logging_storage_create_pv: True
  43. openshift_logging_storage_create_pvc: False
  44. openshift_logging_storage_access_modes:
  45. - ['ReadWriteOnce']
  46. openshift_loggingops_storage_volume_name: 'logging-es-ops'
  47. openshift_loggingops_storage_volume_size: '10Gi'
  48. openshift_loggingops_storage_create_pv: True
  49. openshift_loggingops_storage_create_pvc: False
  50. openshift_loggingops_storage_nfs_directory: '/exports'
  51. openshift_loggingops_storage_nfs_options: '*(rw,root_squash)'
  52. openshift_loggingops_storage_access_modes:
  53. - 'ReadWriteOnce'
  54. openshift_metrics_deploy: False
  55. openshift_metrics_duration: 7
  56. openshift_metrics_resolution: '10s'
  57. openshift_metrics_storage_volume_name: 'metrics'
  58. openshift_metrics_storage_volume_size: '10Gi'
  59. openshift_metrics_storage_create_pv: True
  60. openshift_metrics_storage_create_pvc: False
  61. openshift_metrics_storage_nfs_directory: '/exports'
  62. openshift_metrics_storage_nfs_options: '*(rw,root_squash)'
  63. openshift_metrics_storage_access_modes:
  64. - 'ReadWriteOnce'
  65. openshift_prometheus_storage_volume_name: 'prometheus'
  66. openshift_prometheus_storage_volume_size: '10Gi'
  67. openshift_prometheus_storage_access_modes:
  68. - 'ReadWriteOnce'
  69. openshift_prometheus_storage_create_pv: True
  70. openshift_prometheus_storage_create_pvc: False
  71. openshift_prometheus_alertmanager_storage_volume_name: 'prometheus-alertmanager'
  72. openshift_prometheus_alertmanager_storage_volume_size: '10Gi'
  73. openshift_prometheus_alertmanager_storage_access_modes:
  74. - 'ReadWriteOnce'
  75. openshift_prometheus_alertmanager_storage_create_pv: True
  76. openshift_prometheus_alertmanager_storage_create_pvc: False
  77. openshift_prometheus_alertbuffer_storage_volume_name: 'prometheus-alertbuffer'
  78. openshift_prometheus_alertbuffer_storage_volume_size: '10Gi'
  79. openshift_prometheus_alertbuffer_storage_access_modes:
  80. - 'ReadWriteOnce'
  81. openshift_prometheus_alertbuffer_storage_create_pv: True
  82. openshift_prometheus_alertbuffer_storage_create_pvc: False
  83. openshift_service_type_dict:
  84. origin: origin
  85. openshift-enterprise: atomic-openshift
  86. openshift_service_type: "{{ openshift_service_type_dict[openshift_deployment_type] }}"
  87. openshift_master_api_port: "8443"
  88. openshift_ca_host: "{{ groups.oo_first_master.0 }}"