---
openshift_client_binary: "{{ (openshift_is_containerized | bool) | ternary('/usr/local/bin/oc', 'oc') }}"

openshift_cli_image_dict:
  origin: 'openshift/origin'
  openshift-enterprise: 'openshift3/ose'

repoquery_cmd: "{{ (ansible_pkg_mgr == 'dnf') | ternary('dnf repoquery --latest-limit 1 -d 0', 'repoquery --plugins') }}"
repoquery_installed: "{{ (ansible_pkg_mgr == 'dnf') | ternary('dnf repoquery --latest-limit 1 -d 0 --disableexcludes=all --installed', 'repoquery --plugins --installed') }}"

openshift_use_crio: False
openshift_use_crio_only: False

openshift_cli_image: "{{ osm_image | default(openshift_cli_image_dict[openshift_deployment_type]) }}"

# osm_default_subdomain is an old migrated fact, can probably be removed.
osm_default_subdomain: "router.default.svc.cluster.local"
openshift_master_default_subdomain: "{{ osm_default_subdomain }}"

openshift_hosted_etcd_storage_nfs_directory: '/exports'
openshift_hosted_etcd_storage_nfs_options: '*(rw,root_squash)'
openshift_hosted_etcd_storage_volume_name: 'etcd'
openshift_hosted_etcd_storage_volume_size: '1Gi'
openshift_hosted_etcd_storage_create_pv: True
openshift_hosted_etcd_storage_create_pvc: False
openshift_hosted_etcd_storage_access_modes:
  - 'ReadWriteOnce'

openshift_hosted_registry_namespace: 'default'
openshift_hosted_registry_storage_volume_name: 'registry'
openshift_hosted_registry_storage_volume_size: '5Gi'
openshift_hosted_registry_storage_create_pv: True
openshift_hosted_registry_storage_create_pvc: True
openshift_hosted_registry_storage_nfs_directory: '/exports'
openshift_hosted_registry_storage_nfs_options: '*(rw,root_squash)'
openshift_hosted_registry_storage_glusterfs_endpoints: 'glusterfs-registry-endpoints'
openshift_hosted_registry_storage_glusterfs_path: glusterfs-registry-volume
openshift_hosted_registry_storage_glusterfs_readOnly: False
openshift_hosted_registry_storage_glusterfs_swap: False
openshift_hosted_registry_storage_glusterfs_swapcopy: True
openshift_hosted_registry_storage_glusterfs_ips: []
openshift_hosted_registry_storage_access_modes:
  - 'ReadWriteMany'

openshift_logging_storage_nfs_directory: '/exports'
openshift_logging_storage_nfs_options: '*(rw,root_squash)'
openshift_logging_storage_volume_name: 'logging-es'
openshift_logging_storage_create_pv: True
openshift_logging_storage_create_pvc: False
openshift_logging_storage_access_modes:
  - ['ReadWriteOnce']

openshift_loggingops_storage_volume_name: 'logging-es-ops'
openshift_loggingops_storage_volume_size: '10Gi'
openshift_loggingops_storage_create_pv: True
openshift_loggingops_storage_create_pvc: False
openshift_loggingops_storage_nfs_directory: '/exports'
openshift_loggingops_storage_nfs_options: '*(rw,root_squash)'
openshift_loggingops_storage_access_modes:
  - 'ReadWriteOnce'

openshift_metrics_deploy: False
openshift_metrics_duration: 7
openshift_metrics_resolution: '10s'
openshift_metrics_storage_volume_name: 'metrics'
openshift_metrics_storage_volume_size: '10Gi'
openshift_metrics_storage_create_pv: True
openshift_metrics_storage_create_pvc: False
openshift_metrics_storage_nfs_directory: '/exports'
openshift_metrics_storage_nfs_options: '*(rw,root_squash)'
openshift_metrics_storage_access_modes:
  - 'ReadWriteOnce'

openshift_prometheus_storage_volume_name: 'prometheus'
openshift_prometheus_storage_volume_size: '10Gi'
openshift_prometheus_storage_nfs_directory: '/exports'
openshift_prometheus_storage_nfs_options: '*(rw,root_squash)'
openshift_prometheus_storage_access_modes:
  - 'ReadWriteOnce'
openshift_prometheus_storage_create_pv: True
openshift_prometheus_storage_create_pvc: False

openshift_prometheus_alertmanager_storage_volume_name: 'prometheus-alertmanager'
openshift_prometheus_alertmanager_storage_volume_size: '10Gi'
openshift_prometheus_alertmanager_storage_nfs_directory: '/exports'
openshift_prometheus_alertmanager_storage_nfs_options: '*(rw,root_squash)'
openshift_prometheus_alertmanager_storage_access_modes:
  - 'ReadWriteOnce'
openshift_prometheus_alertmanager_storage_create_pv: True
openshift_prometheus_alertmanager_storage_create_pvc: False

openshift_prometheus_alertbuffer_storage_volume_name: 'prometheus-alertbuffer'
openshift_prometheus_alertbuffer_storage_volume_size: '10Gi'
openshift_prometheus_alertbuffer_storage_nfs_directory: '/exports'
openshift_prometheus_alertbuffer_storage_nfs_options: '*(rw,root_squash)'
openshift_prometheus_alertbuffer_storage_access_modes:
  - 'ReadWriteOnce'
openshift_prometheus_alertbuffer_storage_create_pv: True
openshift_prometheus_alertbuffer_storage_create_pvc: False

openshift_service_type_dict:
  origin: origin
  openshift-enterprise: atomic-openshift

openshift_service_type: "{{ openshift_service_type_dict[openshift_deployment_type] }}"
openshift_use_openshift_sdn: true
openshift_flexvolume_container_directory_default: "/etc/origin/kubelet-plugins"
