Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions private-cloud/base/aws-iaas/base_teardown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# STARTBLOCK # Init run
- name: Init run tasks for Ansible Controller
hosts: localhost
gather_facts: yes
tasks:
- ansible.builtin.include_role:
name: cloudera.exe.init_deployment
public: yes
when: init__completed is undefined

- name: Prepare inventory for PvC Plays
ansible.builtin.include_role:
name: cloudera.exe.init_deployment
public: yes
tasks_from: prep_pvc.yml
tags:
- always

# ENDBLOCK # Init run


# STARTBLOCK # Teardown
# Teardown CA
- name: Teardown CA server
hosts: "{{ target | default('ca_server') }}"
gather_facts: yes
become: yes
tasks:
- ansible.builtin.include_role:
name: cloudera.cluster.infrastructure.ca_certs
tasks_from: clean.yml
tags:
- teardown_ca

- name: Teardown security artifact directories
hosts: "{{ target | default('tls') }}"
gather_facts: yes
become: yes
roles:
- role: cloudera.cluster.security.tls_clean
when: "'tls' in groups"
tags:
- teardown_tls

# Teardown Cluster
- name: Teardown ECS
hosts: "{{ target | default('ecs_nodes') }}"
gather_facts: yes
become: yes
tasks:
- ansible.builtin.include_role:
name: cloudera.cluster.teardown
tasks_from: teardown_ecs.yml
vars:
cluster: "{{ definition.clusters | selectattr('type', 'defined') | selectattr('type', 'search', 'ecs') | first }}"
tags:
- teardown_ecs

- name: Cluster Teardown Process
hosts: "{{ target | default('cloudera_manager, cluster') }}"
gather_facts: yes
become: yes
any_errors_fatal: true
roles:
- cloudera.cluster.teardown
tags:
- teardown_cluster

# ENDBLOCK # Teardown
2 changes: 1 addition & 1 deletion private-cloud/base/aws-iaas/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ auth_providers:
user: "person"
group: "posixgroup"
ldap_search_filter: # Used for mapping Services (Atlas, Ranger, etc.) to LDAP
user: "(&(sAMAccountName={0})(objectClass=person))"
user: "(&(uid={0})(objectClass=person))"
member: "(&(member={0})(objectClass=group))"
# group: (&(member={0})(objectclass=posixgroup)(!(cn=admins)))
ldap_attribute: # Used for mapping CM to LDAP
Expand Down