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
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2025 Cloudera, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 0 additions & 1 deletion roles/auto_repo_mirror/tasks/prepare_auto_repo_mirror.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Deprecation warning
run_once: true
cloudera.exe.deprecation:
Expand Down
1 change: 0 additions & 1 deletion roles/auto_repo_mirror/tasks/update_mirror_cache.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Deprecation warning
run_once: true
cloudera.exe.deprecation:
Expand Down
1 change: 0 additions & 1 deletion roles/blackbox_exporter/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

---

- name: Start blackbox service
block:
- name: Reload systemd daemon
Expand Down
5 changes: 2 additions & 3 deletions roles/caddy/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
# limitations under the License.

---

- name: Reload Caddy
ansible.builtin.service:
name: "{{ caddy_service }}"
state: reloaded
name: "{{ caddy_service }}"
state: reloaded
1 change: 1 addition & 0 deletions roles/caddy/meta/argument_specs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2025 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 0 additions & 1 deletion roles/caddy/tasks/RedHat-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

---

- name: Enable Fedora COPR
ansible.builtin.package:
name: "dnf-command(copr)"
Expand Down
1 change: 0 additions & 1 deletion roles/caddy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

---

- name: Gather host distribution details
ansible.builtin.setup:
gather_subset: distribution
Expand Down
1 change: 1 addition & 0 deletions roles/caddy/vars/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2025 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/caddy/vars/default.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2025 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_agent/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_agent/meta/argument_specs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_agent/molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
7 changes: 4 additions & 3 deletions roles/cm_agent/molecule/default/create.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_assign_public_ip: true
Expand All @@ -38,7 +39,7 @@
default_public_key_path: "{{ default_private_key_path }}.pub"
default_ssh_user: ansible
default_ssh_port: 22
default_user_data: ''
default_user_data: ""

default_security_group_name: "molecule-{{ run_config.run_id }}"
default_security_group_description: Ephemeral security group for Molecule instances
Expand Down Expand Up @@ -123,7 +124,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
5 changes: 3 additions & 2 deletions roles/cm_agent/molecule/default/destroy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_aws_profile: "{{ lookup('env', 'AWS_PROFILE') }}"
Expand Down Expand Up @@ -69,7 +70,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
21 changes: 11 additions & 10 deletions roles/cm_agent/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -37,16 +38,16 @@ platforms:
tags:
Name: molecule-cm_agent-rhel9-4
Project: Molecule testing for cm_agent
# Ubuntu 20.04
# - name: ubuntu20.04.molecule.internal
# image_owner: "099720109477"
# image_name: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*
# instance_type: t3.medium
# boot_wait_seconds: 15
# vpc_subnet_id: ${TEST_VPC_SUBNET_ID}
# tags:
# Name: molecule-cm_agent-ubuntu20-04
# Project: Molecule testing for cm_agent
# Ubuntu 20.04
# - name: ubuntu20.04.molecule.internal
# image_owner: "099720109477"
# image_name: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*
# instance_type: t3.medium
# boot_wait_seconds: 15
# vpc_subnet_id: ${TEST_VPC_SUBNET_ID}
# tags:
# Name: molecule-cm_agent-ubuntu20-04
# Project: Molecule testing for cm_agent
provisioner:
name: ansible
inventory:
Expand Down
5 changes: 3 additions & 2 deletions roles/cm_agent/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,8 +15,8 @@

- name: Prepare
hosts: all
gather_facts: yes
become: yes
gather_facts: true
become: true
tasks:
- name: Set up enterprise Cloudera Manager package repository
ansible.builtin.import_role:
Expand Down
1 change: 1 addition & 0 deletions roles/cm_agent/molecule/default/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_agent/molecule/default/verify.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_agent/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
6 changes: 3 additions & 3 deletions roles/cm_csd/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

---

cloudera_manager_csd_directory: "/opt/cloudera/csd" # noqa: var-naming[no-role-prefix]
cloudera_manager_csds: [] # noqa: var-naming[no-role-prefix]
cloudera_manager_csd_restarted: false # noqa: var-naming[no-role-prefix]
cloudera_manager_csd_directory: "/opt/cloudera/csd" # noqa: var-naming[no-role-prefix]
cloudera_manager_csds: [] # noqa: var-naming[no-role-prefix]
cloudera_manager_csd_restarted: false # noqa: var-naming[no-role-prefix]

# cloudera_manager_repo_username:
# cloudera_manager_repo_password:
1 change: 1 addition & 0 deletions roles/cm_csd/meta/argument_specs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_csd/molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
7 changes: 4 additions & 3 deletions roles/cm_csd/molecule/default/create.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_assign_public_ip: true
Expand All @@ -38,7 +39,7 @@
default_public_key_path: "{{ default_private_key_path }}.pub"
default_ssh_user: ansible
default_ssh_port: 22
default_user_data: ''
default_user_data: ""

default_security_group_name: "molecule-{{ run_config.run_id }}"
default_security_group_description: Ephemeral security group for Molecule instances
Expand Down Expand Up @@ -123,7 +124,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
5 changes: 3 additions & 2 deletions roles/cm_csd/molecule/default/destroy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_aws_profile: "{{ lookup('env', 'AWS_PROFILE') }}"
Expand Down Expand Up @@ -69,7 +70,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
1 change: 1 addition & 0 deletions roles/cm_csd/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_csd/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions roles/cm_csd/molecule/default/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
3 changes: 1 addition & 2 deletions roles/cm_csd/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

---

- name: Verify
hosts: all
gather_facts: false
Expand All @@ -23,7 +22,7 @@
ansible.builtin.find:
paths: "/opt/cloudera/csd"
patterns:
- '*.jar'
- "*.jar"
recurse: false
register: __csd
failed_when: __csd.matched != 3
1 change: 0 additions & 1 deletion roles/cm_csd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

---

- name: Create CSD directory
ansible.builtin.file:
path: "{{ cloudera_manager_csd_directory }}"
Expand Down
1 change: 1 addition & 0 deletions roles/cm_repo/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
5 changes: 3 additions & 2 deletions roles/cm_repo/meta/argument_specs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,8 +26,8 @@ argument_specs:
cloudera_manager_version:
description:
- Version of Cloudera Manager.
- If not defined and C(cloudera_manager_repo_username) is not defined, will default to the C(7.4.4) trial version,
if compatiable with the OS distribution.
- If not defined and C(cloudera_manager_repo_username) is not defined, will default to the C(7.4.4) trial version, if compatiable with the OS
distribution.
default: 7.11.3
cloudera_manager_repo_url:
description:
Expand Down
1 change: 1 addition & 0 deletions roles/cm_repo/molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
7 changes: 4 additions & 3 deletions roles/cm_repo/molecule/default/create.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_assign_public_ip: true
Expand All @@ -38,7 +39,7 @@
default_public_key_path: "{{ default_private_key_path }}.pub"
default_ssh_user: ansible
default_ssh_port: 22
default_user_data: ''
default_user_data: ""

default_security_group_name: "molecule-{{ run_config.run_id }}"
default_security_group_description: Ephemeral security group for Molecule instances
Expand Down Expand Up @@ -123,7 +124,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
5 changes: 3 additions & 2 deletions roles/cm_repo/molecule/default/destroy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -25,7 +26,7 @@

run_config_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/run-config.yml"
run_config_from_file: "{{ (lookup('file', run_config_path, errors='ignore') or '{}') | from_yaml }}"
run_config: '{{ default_run_config | combine(run_config_from_file) }}'
run_config: "{{ default_run_config | combine(run_config_from_file) }}"

# Platform settings handling
default_aws_profile: "{{ lookup('env', 'AWS_PROFILE') }}"
Expand Down Expand Up @@ -69,7 +70,7 @@
- platform.vpc_id is string
- platform.vpc_subnet_id is string and platform.vpc_subnet_id | length > 0
quiet: true
loop: '{{ platforms }}'
loop: "{{ platforms }}"
loop_control:
loop_var: platform
label: "{{ platform.name }}"
Expand Down
Loading
Loading