blob: b45629b70919074195fd4da8fad7c73cb397d422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
---
- name: check that hawkular_metrics_hostname is set
fail: msg='the openshift_metrics_hawkular_hostname variable is required'
when: openshift_metrics_hawkular_hostname is not defined
- name: check the value of openshift_metrics_cassandra_storage_type
fail:
msg: >
openshift_metrics_cassandra_storage_type ({{ openshift_metrics_cassandra_storage_type }})
is invalid, must be one of: emptydir, pv, dynamic
when: openshift_metrics_cassandra_storage_type not in openshift_metrics_cassandra_storage_types
- name: Install Metrics
include: "{{ role_path }}/tasks/install_{{ include_file }}.yaml"
with_items:
- support
- heapster
- hawkular
loop_control:
loop_var: include_file
- name: create objects
command: >
{{ openshift.common.client_binary }} -n {{ openshift_metrics_project }}
--config={{ mktemp.stdout }}/admin.kubeconfig
apply -f {{ item }}
with_fileglob:
- "{{ mktemp.stdout }}/templates/*.yaml"
- name: Scaling up cluster
include: start_metrics.yaml
tags: openshift_metrics_start_cluster
when:
- openshift_metrics_start_cluster | default(true) | bool
|