-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpvc.yml
136 lines (121 loc) · 2.74 KB
/
pvc.yml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
- name: Group hosts by whether TLS is enabled
hosts: pvc_hosts
gather_facts: no
tasks:
- import_tasks: tasks/group_hosts_by_tls.yml
- name: Apply OS pre-requisite configurations
hosts: pvc_hosts
become: yes
roles:
- role: prereqs/os
when: pvc_type == "ECS"
tags:
- os
- name: Create local user accounts
hosts: pvc_hosts
become: yes
gather_facts: no
roles:
- role: prereqs/user_accounts
when: pvc_type == "ECS"
tags:
- users
- name: Install JDK
hosts: pvc_hosts
become: yes
roles:
- role: prereqs/jdk
when: pvc_type == "ECS"
tags:
- jdk
- name: Install MySQL Connector
hosts: pvc_hosts
gather_facts: no
become: yes
roles:
- role: prereqs/mysql_connector
when: database_type == 'mysql' or database_type == 'mariadb' and pvc_type == "ECS"
tags:
- mysql_connector
- name: Install Oracle Connector
hosts: pvc_hosts
gather_facts: no
become: yes
roles:
- role: prereqs/oracle_connector
when: database_type == 'oracle' and pvc_type == "ECS"
tags:
- oracle_connector
- name: Install Postgres Connector
hosts: pvc_hosts
gather_facts: no
become: yes
roles:
- role: prereqs/psql_connector
when: database_type == 'postgresql' and pvc_type == "ECS"
tags:
- psql_connector
- name: Install pre-requisite packages for Kerberos
hosts: pvc_hosts
become: yes
roles:
- role: prereqs/kerberos
when: krb5_kdc_host is defined or 'krb5_server' in groups and pvc_type == "ECS"
tags:
- kerberos
- prereqs
- name: Install Cloudera Manager daemons
hosts: pvc_hosts
become: yes
any_errors_fatal: true
roles:
- role: cloudera_manager/daemons
when: pvc_type == "ECS"
- name: Install Cloudera Manager agents
hosts: pvc_hosts
become: yes
any_errors_fatal: true
roles:
- role: cloudera_manager/agent
when: pvc_type == "ECS"
- name: Configure Cloudera Manager agents
hosts: pvc_hosts
become: yes
any_errors_fatal: true
roles:
- role: cloudera_manager/agent_config_pvc
when: pvc_type == "ECS"
- name: Create a dns and dns-entry for ECS on all PvC servers
hosts: pvc_hosts
become: yes
roles:
- role: prereqs/pvc_ecs_dns
when: pvc_type == "ECS"
tags:
- os
- network
- name: Apply specific pre-requisites for ECS
hosts: pvc_hosts
become: yes
roles:
- role: prereqs/pvc_ecs
when: pvc_type == "ECS"
tags:
- os
- name: Enable a PvC-ECS cluster
hosts: cloudera_manager
gather_facts: no
roles:
- role: deployment/create_pvc
when: pvc_type == "ECS"
tags:
- pvc
- name: Enable a PvC-OC cluster
hosts: cloudera_manager
gather_facts: no
roles:
- role: deployment/create_pvc_oc
when: pvc_type == "OC"
tags:
- pvc