Skip to content

Commit b9aacd5

Browse files
authored
Fix FreeIPA user search group and add base_teardown.yml playbook (#137)
Signed-off-by: Chuck Levesque <clevesque@cloudera.com>
1 parent aed2798 commit b9aacd5

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
3+
# Copyright 2023 Cloudera, Inc. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# STARTBLOCK # Init run
18+
- name: Init run tasks for Ansible Controller
19+
hosts: localhost
20+
gather_facts: yes
21+
tasks:
22+
- ansible.builtin.include_role:
23+
name: cloudera.exe.init_deployment
24+
public: yes
25+
when: init__completed is undefined
26+
27+
- name: Prepare inventory for PvC Plays
28+
ansible.builtin.include_role:
29+
name: cloudera.exe.init_deployment
30+
public: yes
31+
tasks_from: prep_pvc.yml
32+
tags:
33+
- always
34+
35+
# ENDBLOCK # Init run
36+
37+
38+
# STARTBLOCK # Teardown
39+
# Teardown CA
40+
- name: Teardown CA server
41+
hosts: "{{ target | default('ca_server') }}"
42+
gather_facts: yes
43+
become: yes
44+
tasks:
45+
- ansible.builtin.include_role:
46+
name: cloudera.cluster.infrastructure.ca_certs
47+
tasks_from: clean.yml
48+
tags:
49+
- teardown_ca
50+
51+
- name: Teardown security artifact directories
52+
hosts: "{{ target | default('tls') }}"
53+
gather_facts: yes
54+
become: yes
55+
roles:
56+
- role: cloudera.cluster.security.tls_clean
57+
when: "'tls' in groups"
58+
tags:
59+
- teardown_tls
60+
61+
# Teardown Cluster
62+
- name: Teardown ECS
63+
hosts: "{{ target | default('ecs_nodes') }}"
64+
gather_facts: yes
65+
become: yes
66+
tasks:
67+
- ansible.builtin.include_role:
68+
name: cloudera.cluster.teardown
69+
tasks_from: teardown_ecs.yml
70+
vars:
71+
cluster: "{{ definition.clusters | selectattr('type', 'defined') | selectattr('type', 'search', 'ecs') | first }}"
72+
tags:
73+
- teardown_ecs
74+
75+
- name: Cluster Teardown Process
76+
hosts: "{{ target | default('cloudera_manager, cluster') }}"
77+
gather_facts: yes
78+
become: yes
79+
any_errors_fatal: true
80+
roles:
81+
- cloudera.cluster.teardown
82+
tags:
83+
- teardown_cluster
84+
85+
# ENDBLOCK # Teardown

private-cloud/base/aws-iaas/definition.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ auth_providers:
123123
user: "person"
124124
group: "posixgroup"
125125
ldap_search_filter: # Used for mapping Services (Atlas, Ranger, etc.) to LDAP
126-
user: "(&(sAMAccountName={0})(objectClass=person))"
126+
user: "(&(uid={0})(objectClass=person))"
127127
member: "(&(member={0})(objectClass=group))"
128128
# group: (&(member={0})(objectclass=posixgroup)(!(cn=admins)))
129129
ldap_attribute: # Used for mapping CM to LDAP

0 commit comments

Comments
 (0)