blob: 66925c11357acdb1cd90d9eaefffdfa257e7bb95 (
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
35
36
37
38
39
40
41
|
---
- include: pre_install.yaml
- name: Install Metrics
include: "{{ role_path }}/tasks/install_{{ include_file }}.yaml"
with_items:
- support
- heapster
- hawkular
- cassandra
loop_control:
loop_var: include_file
when: "not {{ openshift_metrics_heapster_standalone | bool }}"
- name: Install Heapster Standalone
include: install_heapster.yaml
when: "{{ openshift_metrics_heapster_standalone | bool }}"
- find: paths={{ mktemp.stdout }}/templates patterns=*.yaml
register: object_def_files
changed_when: no
- slurp: src={{item.path}}
register: object_defs
with_items: "{{object_def_files.files}}"
changed_when: no
- name: Create objects
include: oc_apply.yaml
vars:
kubeconfig: "{{ mktemp.stdout }}/admin.kubeconfig"
namespace: "{{ openshift_metrics_project }}"
file_name: "{{ item.source }}"
file_content: "{{ item.content | b64decode | from_yaml }}"
with_items: "{{ object_defs.results }}"
- name: Scaling up cluster
include: start_metrics.yaml
tags: openshift_metrics_start_cluster
when:
- openshift_metrics_start_cluster | default(true) | bool
|