Skip to content

Commit f18cfa7

Browse files
authored
Change ordering of roles to enable database tls (requires user accounts to precede tls creation for key ACLs and then requires tls to precede RDBMS creation). (#31)
Signed-off-by: Tristan Stevens <tristan@cloudera.com>
1 parent af9a05b commit f18cfa7

File tree

1 file changed

+56
-55
lines changed

1 file changed

+56
-55
lines changed

cluster.yml

Lines changed: 56 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -103,61 +103,6 @@
103103
- full_cluster
104104

105105
# ENDBLOCK # Verify Inventory and Definition
106-
# STARTBLOCK # Create Cluster Service Infrastructure
107-
108-
- name: Install RDBMS
109-
hosts: db_server
110-
become: yes
111-
roles:
112-
- cloudera.cluster.infrastructure.rdbms
113-
tags:
114-
- database
115-
- default_cluster
116-
- full_cluster
117-
118-
- name: Install KDC
119-
hosts: krb5_server
120-
become: yes
121-
roles:
122-
- role: cloudera.cluster.infrastructure.krb5_server
123-
tags:
124-
- security
125-
- kerberos
126-
- tls
127-
- full_cluster
128-
129-
- name: Setup KRB5 clients
130-
hosts: cloudera_manager, cluster
131-
become: yes
132-
roles:
133-
- role: cloudera.cluster.infrastructure.krb5_client
134-
when: "'krb5_server' in groups"
135-
tags:
136-
- security
137-
- kerberos
138-
- tls
139-
- full_cluster
140-
141-
- name: Install CA server
142-
hosts: ca_server
143-
become: yes
144-
roles:
145-
- cloudera.cluster.infrastructure.ca_server
146-
tags:
147-
- security
148-
- tls
149-
- full_cluster
150-
151-
- name: Install HAProxy
152-
hosts: haproxy
153-
become: yes
154-
roles:
155-
- cloudera.cluster.infrastructure.haproxy
156-
tags:
157-
- ha
158-
- full_cluster
159-
160-
# ENDBLOCK # Create Cluster Service Infrastructure
161106
# STARTBLOCK # Prepare Nodes
162107

163108
- name: Apply OS pre-requisite configurations
@@ -214,6 +159,51 @@
214159
- full_cluster
215160

216161
# ENDBLOCK # Prepare Nodes
162+
# STARTBLOCK # Create Cluster Service Infrastructure
163+
164+
- name: Install KDC
165+
hosts: krb5_server
166+
become: yes
167+
roles:
168+
- role: cloudera.cluster.infrastructure.krb5_server
169+
tags:
170+
- security
171+
- kerberos
172+
- tls
173+
- full_cluster
174+
175+
- name: Setup KRB5 clients
176+
hosts: cloudera_manager, cluster
177+
become: yes
178+
roles:
179+
- role: cloudera.cluster.infrastructure.krb5_client
180+
when: "'krb5_server' in groups"
181+
tags:
182+
- security
183+
- kerberos
184+
- tls
185+
- full_cluster
186+
187+
- name: Install CA server
188+
hosts: ca_server
189+
become: yes
190+
roles:
191+
- cloudera.cluster.infrastructure.ca_server
192+
tags:
193+
- security
194+
- tls
195+
- full_cluster
196+
197+
- name: Install HAProxy
198+
hosts: haproxy
199+
become: yes
200+
roles:
201+
- cloudera.cluster.infrastructure.haproxy
202+
tags:
203+
- ha
204+
- full_cluster
205+
206+
# ENDBLOCK # Create Cluster Service Infrastructure
217207
# STARTBLOCK # Prepare TLS
218208

219209
- name: Fetch CA certificates
@@ -260,6 +250,17 @@
260250
- always
261251

262252
# ENDBLOCK # Prepare TLS
253+
# STARTBLOCK # Install Cluster Service Infrastructure II
254+
- name: Install RDBMS
255+
hosts: db_server
256+
become: yes
257+
roles:
258+
- cloudera.cluster.infrastructure.rdbms
259+
tags:
260+
- database
261+
- default_cluster
262+
- full_cluster
263+
# ENDBLOCK # Install Cluster Service Infrastructure II
263264
# STARTBLOCK # NiFi TLS
264265

265266
- name: Setup symlinks for NiFi TLS keystore and truststore

0 commit comments

Comments
 (0)