---
# this is used to set the metrics variables from deprecated values to the current variables names
# this file should be deleted once variables are no longer honored

- conditional_set_fact:
    facts: "{{ hostvars[inventory_hostname] }}"
    vars:
      openshift_metrics_storage_access_modes: openshift_hosted_metrics_storage_access_modes
      openshift_metrics_storage_host: openshift_hosted_metrics_storage_host
      openshift_metrics_storage_nfs_directory: openshift_hosted_metrics_storage_nfs_directory
      openshift_metrics_storage_volume_name: openshift_hosted_metrics_storage_volume_name
      openshift_metrics_storage_volume_size: openshift_hosted_metrics_storage_volume_size
      openshift_metrics_storage_labels: openshift_hosted_metrics_storage_labels
      openshift_metrics_image_prefix: openshift_hosted_metrics_deployer_prefix
      openshift_metrics_image_version: openshift_hosted_metrics_deployer_version
      openshift_metrics_install_metrics: openshift_hosted_metrics_deploy
      openshift_metrics_storage_kind: openshift_hosted_metrics_storage_kind
      openshift_metrics_hawkular_hostname: openshift_hosted_metrics_public_url
