123456789101112131415161718192021222324 |
- ---
- - name: check that hawkular_metrics_hostname is set
- fail: msg='the openshift_metrics_hawkular_metrics_hostname variable is required'
- when: "{{ openshift_metrics_hawkular_metrics_hostname is not defined }}"
- - name: check the value of openshift_metrics_hawkular_cassandra_storage_type
- fail:
- msg: >
- openshift_metrics_hawkular_cassandra_storage_type ({{ openshift_metrics_hawkular_cassandra_storage_type }})
- is invalid, must be one of: emptydir, pv, dynamic
- when: openshift_metrics_hawkular_cassandra_storage_type not in openshift_metrics_hawkular_cassandra_storage_types
- - name: Install Metrics
- include: "{{ role_path }}/tasks/install_{{ include_file }}.yaml"
- with_items:
- - metrics
- - heapster
- - hawkular
- loop_control:
- loop_var: include_file
- - name: create objects
- command: >
- {{ openshift.common.client_binary }} -n '{{ openshift_metrics_project }}'
- apply -f {{ item }}
- with_fileglob:
- - "{{ mktemp.stdout }}/templates/*.yaml"
|