-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain.yaml
83 lines (76 loc) · 1.73 KB
/
main.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
- name: Schema Registry Provisioning
hosts: preflight
tags: preflight
become: yes
pre_tasks:
#Copy SSL JKS Keystores to resptive hosts
#Have to do this ourselfs vs using a role. So we only upload the needed JKS files to the resptive hosts.
- name: create ssl certificate directory
file:
path: /var/ssl/private
state: directory
mode: 0755
- name: copy ssl related files to host
synchronize:
src: ssl-certs/
dest: /var/ssl/private
rsync_opts:
- "--include={{inventory_hostname}}*"
- "--delete"
tasks:
- import_role:
name: confluent.common
become: yes
- name: Zookeeper Provisioning
hosts: zookeeper
tags: zookeeper
pre_tasks:
tasks:
- import_role:
name: confluent.zookeeper
become: yes
- name: Kafka Broker Provisioning
hosts: kafka_broker
tags: kafka_broker
tasks:
- import_role:
name: confluent.kafka_broker
become: yes
- name: Control Center Provisioning
hosts: control_center
tags: control_center
tasks:
- import_role:
name: confluent.control_center
become: yes
- name: Kafka Connect Provisioning
hosts: kafka_connect_ssl
tags: kafka_connect
tasks:
- import_role:
name: confluent.kafka_connect
become: yes
- name: Schema Registry Provisioning
hosts: schema_registry_ssl
tags:
- schema_registry
tasks:
- import_role:
name: confluent.schema_registry
become: yes
- name: KSQL Provisioning
hosts: ksql_ssl
tags:
- ksql
tasks:
- import_role:
name: confluent.ksql
become: yes
- name: Kafka Rest Provisioning
hosts: kafka_rest
tags:
- kafka_rest
tasks:
- import_role:
name: confluent.kafka_rest
become: yes