__deprecations_logging.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. # this is used to set the logging variables from deprecated values to the current variables names
  3. # this file should be deleted once variables are no longer honored
  4. - conditional_set_fact:
  5. facts: "{{ hostvars[inventory_hostname] }}"
  6. vars:
  7. logging_hostname: openshift_hosted_logging_hostname
  8. logging_ops_hostname: openshift_hosted_logging_ops_hostname
  9. logging_elasticsearch_cluster_size: openshift_hosted_logging_elasticsearch_cluster_size
  10. logging_elasticsearch_ops_cluster_size: openshift_hosted_logging_elasticsearch_ops_cluster_size
  11. openshift_logging_storage_kind: openshift_hosted_logging_storage_kind
  12. openshift_logging_storage_host: openshift_hosted_logging_storage_host
  13. openshift_logging_storage_labels: openshift_hosted_logging_storage_labels
  14. openshift_logging_storage_volume_size: openshift_hosted_logging_storage_volume_size
  15. openshift_loggingops_storage_kind: openshift_hosted_loggingops_storage_kind
  16. openshift_loggingops_storage_host: openshift_hosted_loggingops_storage_host
  17. openshift_loggingops_storage_labels: openshift_hosted_loggingops_storage_labels
  18. openshift_loggingops_storage_volume_size: openshift_hosted_loggingops_storage_volume_size
  19. openshift_logging_use_ops: openshift_hosted_logging_enable_ops_cluster
  20. openshift_logging_image_pull_secret: openshift_hosted_logging_image_pull_secret
  21. openshift_logging_kibana_hostname: openshift_hosted_logging_hostname
  22. openshift_logging_kibana_ops_hostname: openshift_hosted_logging_ops_hostname
  23. openshift_logging_fluentd_journal_source: openshift_hosted_logging_journal_source
  24. openshift_logging_fluentd_journal_read_from_head: openshift_hosted_logging_journal_read_from_head
  25. openshift_logging_es_memory_limit: openshift_hosted_logging_elasticsearch_instance_ram
  26. openshift_logging_es_nodeselector: openshift_hosted_logging_elasticsearch_nodeselector
  27. openshift_logging_es_ops_memory_limit: openshift_hosted_logging_elasticsearch_ops_instance_ram
  28. openshift_logging_storage_access_modes: openshift_hosted_logging_storage_access_modes
  29. openshift_logging_master_public_url: openshift_hosted_logging_master_public_url
  30. openshift_logging_image_prefix: openshift_hosted_logging_deployer_prefix
  31. openshift_logging_image_version: openshift_hosted_logging_deployer_version
  32. openshift_logging_install_logging: openshift_hosted_logging_deploy
  33. - set_fact:
  34. openshift_logging_elasticsearch_pvc_dynamic: "{{ 'true' if openshift_logging_storage_kind | default(none) == 'dynamic' else '' }}"
  35. openshift_logging_elasticsearch_pvc_size: "{{ openshift_logging_storage_volume_size | default('10Gi') if openshift_logging_storage_kind | default(none) in ['dynamic','nfs'] else '' }}"
  36. openshift_logging_elasticsearch_pvc_prefix: "{{ 'logging-es' if openshift_logging_storage_kind | default(none) == 'dynamic' else '' }}"
  37. openshift_logging_elasticsearch_ops_pvc_dynamic: "{{ 'true' if openshift_loggingops_storage_kind | default(none) == 'dynamic' else '' }}"
  38. openshift_logging_elasticsearch_ops_pvc_size: "{{ openshift_loggingops_storage_volume_size | default('10Gi') if openshift_loggingops_storage_kind | default(none) in ['dynamic','nfs'] else '' }}"
  39. openshift_logging_elasticsearch_ops_pvc_prefix: "{{ 'logging-es-ops' if openshift_loggingops_storage_kind | default(none) == 'dynamic' else '' }}"
  40. openshift_logging_curator_nodeselector: "{{ openshift_hosted_logging_curator_nodeselector | default('') | map_from_pairs }}"
  41. openshift_logging_curator_ops_nodeselector: "{{ openshift_hosted_logging_curator_ops_nodeselector | default('') | map_from_pairs }}"
  42. openshift_logging_kibana_nodeselector: "{{ openshift_hosted_logging_kibana_nodeselector | default('') | map_from_pairs }}"
  43. openshift_logging_kibana_ops_nodeselector: "{{ openshift_hosted_logging_kibana_ops_nodeselector | default('') | map_from_pairs }}"
  44. openshift_logging_fluentd_nodeselector: "{{ openshift_hosted_logging_fluentd_nodeselector_label | default('logging-infra-fluentd=true') | map_from_pairs }}"
  45. openshift_logging_es_ops_nodeselector: "{{ openshift_hosted_logging_elasticsearch_ops_nodeselector | default('') | map_from_pairs }}"