Skip to content

Commit 254006d

Browse files
authored
ECS 1.5.0 changes for local users and Ranger plugins (#111)
* Update to gather facts when addressing local users for ECS * Skip Solr plugins for Ranger Signed-off-by: Chuck Levesque <clevesque@cloudera.com>
1 parent ef1fb6b commit 254006d

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

pvc_base_postfix.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,14 @@
6868
hosts: localhost
6969
become: yes
7070
gather_facts: no
71-
roles:
72-
- role: cloudera.cluster.deployment.services.kts_high_availability
71+
tasks:
72+
- ansible.builtin.include_role:
73+
name: cloudera.cluster.deployment.services.kts_high_availability
74+
public: yes
75+
apply:
76+
tags:
77+
- kts
78+
- full_cluster
7379
when:
7480
- "'kts_active' in groups"
7581
- "'kts_passive' in groups"
@@ -169,12 +175,13 @@
169175
include_role:
170176
name: cloudera.cluster.cloudera_manager.session_timeout
171177

172-
- name: Create missing Solr plugin for Ranger
173-
include_role:
174-
name: cloudera.cluster.config.services.solr_ranger_plugin
175-
when:
176-
- ranger_service_exists | default(false)
177-
- solr_service_exists | default(false)
178+
## TODO Believe this is version specific, in 7.1.7Spx solr plugin is NOT missing, needs work
179+
# - name: Create missing Solr plugin for Ranger
180+
# include_role:
181+
# name: cloudera.cluster.config.services.solr_ranger_plugin
182+
# when:
183+
# - ranger_service_exists | default(false)
184+
# - solr_service_exists | default(false)
178185

179186
- name: Add Solr urls to Knox
180187
include_role:
@@ -188,10 +195,11 @@
188195
include_role:
189196
name: cloudera.cluster.config.services.kms_tls
190197

191-
- name: Ranger extra policies to have enough rights with basic accounts
192-
when: ranger_service_exists | default(false)
193-
include_role:
194-
name: cloudera.cluster.config.services.ranger_pvc_default_policies
198+
## TODO Believe this is version specific, in 7.1.7SPx Ranger policies are duplicated, needs work
199+
# - name: Ranger extra policies to have enough rights with basic accounts
200+
# when: ranger_service_exists | default(false)
201+
# include_role:
202+
# name: cloudera.cluster.config.services.ranger_pvc_default_policies
195203

196204
# End run
197205
###

pvc_base_prereqs_ext.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
- name: Create local users on ECS Nodes
137137
hosts: ecs_nodes
138138
become: yes
139-
gather_facts: no
139+
gather_facts: yes
140140
tags:
141141
- pvc
142142
- users
@@ -293,4 +293,4 @@
293293
- default_cluster
294294
- full_cluster
295295

296-
# ENDBLOCK # Install Cluster Service Infrastructure II
296+
# ENDBLOCK # Install Cluster Service Infrastructure II

0 commit comments

Comments
 (0)