pre_install.yaml 972 B

123456789101112131415161718192021222324252627
  1. ---
  2. - name: Check that hawkular_metrics_hostname is set
  3. fail: msg='the openshift_metrics_hawkular_hostname variable is required'
  4. when: openshift_metrics_hawkular_hostname is not defined
  5. - name: Check the value of openshift_metrics_cassandra_storage_type
  6. fail:
  7. msg: >
  8. openshift_metrics_cassandra_storage_type ({{ openshift_metrics_cassandra_storage_type }})
  9. is invalid, must be one of: emptydir, pv, dynamic
  10. when:
  11. - openshift_metrics_cassandra_storage_type not in openshift_metrics_cassandra_storage_types
  12. - "not {{ openshift_metrics_heapster_standalone | bool }}"
  13. - name: create certificate output directory
  14. file:
  15. path: "{{ openshift_metrics_certs_dir }}"
  16. state: directory
  17. mode: 0700
  18. - name: list existing secrets
  19. command: >
  20. {{ openshift.common.client_binary }} -n {{ openshift_metrics_project }}
  21. --config={{ mktemp.stdout }}/admin.kubeconfig
  22. get secrets -o name
  23. register: metrics_secrets
  24. changed_when: false