forked from sunbird-cb/sunbird-data-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdruid-ingestion.yml
More file actions
54 lines (50 loc) · 1.46 KB
/
druid-ingestion.yml
File metadata and controls
54 lines (50 loc) · 1.46 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- hosts: localhost
tasks:
- name: set_fact
set_fact:
single_cluster: true
tags: populate_var
- name: check for hosts
set_fact:
single_cluster: false
when: "'rollup-overlord' in groups"
tags: populate_var
- hosts: rollup-overlord
become: yes
roles:
- role: druid-ingestion
vars:
ingestion_task_names: "{{ rollup_ingestion_task_names }}"
overlord_host: "{{ rollup_overlord_host }}"
when: not hostvars['localhost']['single_cluster']
- hosts: raw-overlord
become: yes
roles:
- role: druid-ingestion
vars:
ingestion_task_names: "{{ raw_ingestion_task_names }}"
overlord_host: "{{ raw_overlord_host }}"
when: not hostvars['localhost']['single_cluster']
- role: druid-ingestion
vars:
ingestion_task_names: "{{ raw_ingestion_task_names }}"
overlord_host: "{{ raw_overlord_host }}"
when: hostvars['localhost']['single_cluster']
tags:
- druid
- hosts: ml-raw-overlord
become: yes
roles:
- role: ml-druid-ingestion
vars:
ingestion_task_names: "{{ raw_ingestion_task_names }}"
overlord_host: "{{ ml_raw_overlord_host }}"
when: not hostvars['localhost']['single_cluster']
- role: ml-druid-ingestion
vars:
ingestion_task_names: "{{ raw_ingestion_task_names }}"
overlord_host: "{{ ml_raw_overlord_host }}"
when: hostvars['localhost']['single_cluster']
tags:
- ml-druid